0
Leaf created
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
- ABP Framework version: v4
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Seperated (Angular): no
- Exception message and stack trace:
- Steps to reproduce the issue:
Hi,
What is the best way to check data is exist or not before insert/ update then if the data is exist then will show message box the data already exists.
Thank you.
1 Answer(s)
-
0
hi
Use the repository to query data, you can throw a exception then the ui will automatically show the messages.
https://docs.abp.io/en/abp/latest/Exception-Handling#business-exceptions https://docs.abp.io/en/abp/latest/Exception-Handling#user-friendly-exception