Closed VictorioBerra closed 1 year ago
I created a project that illustrates the above, would you change anything? Mainly look at https://github.com/VictorioBerra/ArdalisResult-Architecture-Example/blob/main/ArdalisResultArch/Pages/Blog/Edit.cshtml.cs#L42
I validate the model, and I also validate in the app service (class that returns Result<>). So I validate twice.
Closing as I dont think this is the best place for this type of discussion but I would love to find a better place to talk about .NET architecture. There seems to be a lot of libraries, sample apps, Pluralsight videos and talks about Clean Code, Onion Arch, Hexigonal Arch, but very few places to actually get feedback and discuss.
Hello, thanks for the useful library! I know this might not be the best place for questions like this but I wanted to ask about best practices with architecture when layering an app using Ardalis.Result and things like RazorPages and FluentValidation.
Take the following example from the homepage, where we have a service that updates a BlogCategory, and leverages FluentValidation and Ardalis.Result:
BlogService (from README.md)
Razor Page
Html
Code Behind
My questions are:
this.blogCategoryService.UpdateAsync()
? Or is that even more coupling?