Error Handling in Csla.Blazor.ViewModel during SaveAsync #4268
Unanswered
ecaldentey
asked this question in
Questions
Replies: 1 comment 1 reply
-
Hi. Hth |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am using the Csla.Blazor.ViewModel class to interact with my components in the UI, for example:
Inject protected Csla.Blazor.ViewModel _vmProductService { get; set; }
When I call Save using the class like this:
await vmBizdeal.SaveAsync();
If an error occurs during the database update process, the SaveAsync method does not throw an exception. The ViewModel class has an Exception property, but I'm not clear on the correct way to use this information.
How can I detect at the UI level if an error occurs when executing the SaveAsync method?
Beta Was this translation helpful? Give feedback.
All reactions