ASP.Net IActionResult always returns Ok
I have the following method inside of a service, I call this method from a controller
Where its suppsoe to return 404 not found it enters the return statement and jumps to the last line of the method (Return Ok)
This seems to happen on all methods, possibly there is a better way of returning values from services?
This is how I call this method
Where its suppsoe to return 404 not found it enters the return statement and jumps to the last line of the method (Return Ok)
This seems to happen on all methods, possibly there is a better way of returning values from services?
This is how I call this method