DEV Community

Discussion on: Asynchronous Calls, Data-Transfer-Objects & Automapper in .NET Core Web API

Collapse
 
henkvandergeld profile image
henkvandergeld

Hi Patrick, we followed your tip to use the ServiceResponse class, but we got feedback that things as OkObjectResult, or NotFoundObjectResult were not available for the consumer of the API's. So instead of returning an ActionResult<>, we returned a ServiceResponse<>. Did we do something wrong? How do you consider this?
Thanks in advance. Regards, Henk