fullstackhero / blazor-starter-kit

Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
MIT License
3.48k stars 730 forks source link

Why use IResult.Succeeded instead of the response codes? #354

Open Tealons opened 2 years ago

Tealons commented 2 years ago

We had a discussion about this here at work.... Maybe you can share your thoughts?

akbarbd commented 2 years ago

IResult.Succeeded carry,

  1. Here no Exception or don't break any kind of business rules
  2. IResult.Data hold response data