How to rewrite BadRequest and Ok in .net web api?
mc
6,576
Reputation points
How to rewrite
Ok
and BadRequest I can custom the return object?
if I return Ok(myObj) I want to add some property to myObj and If I return BadRequest I want to change the statusCode
Developer technologies | ASP.NET | ASP.NET Core
Developer technologies | ASP.NET | ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
Sign in to answer