protected NoContentResult SuccessWithOutData()
{
return this.NoContent();
}
protected CreatedAtActionResult SuccessAndNoData()
{
return ? ; // What do I return here?
}
For 201 result what do I have to return here?
protected NoContentResult SuccessWithOutData()
{
return this.NoContent();
}
protected CreatedAtActionResult SuccessAndNoData()
{
return ? ; // What do I return here?
}
For 201 result what do I have to return here?
You could check the Microsoft.AspNetCore.Mvc.ControllerBase class and you would find all the methods to retrun response
And you could check this document to learn the difference between responses: