0
rattlehub created
Take the method protected virtual async Task CreateUserAsync(CreateOrUpdateUserInput input)
This returns 200. Is it possible without creating a controller in a service inheriting from ApplicationService to return 201 instead of 200. The services don't follow the correct http status codes as defined here. <a class="postlink" href="http://www.restapitutorial.com/httpstatuscodes.html">http://www.restapitutorial.com/httpstatuscodes.html</a>
2 Answer(s)
-
0
Method is purely an example. I want to return 201 for create for angular client without creating a controller
-
0
hi,
you cannot set a status code from an application service because it's a web layer feature. you need to write your own controller #3580@ac71af71-6264-42c2-8f33-67145942f177