amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Improving performance in "ApiController"

amirhessampourhossein opened this issue · comments

I am getting the CA1859 suggestion in visual studio when hovering over Problem(Error error) and ValidationProblem(List<Error> errors) in ApiController
is it really a good idea to change the return type from IActionResult to ActionResult or ObjectRresult ?

Yeah sure, let's change it since the type is known. Changed in a separate commit under #10