public async Task <ActionResult <Category> > DeleteCategory([FromRoute] int id) { if (!await categoryDAO.DeleteAsync(id)) { return(StatusCode(categoryDAO.GetCustomError().StatusCode, categoryDAO.GetCustomError())); } return(NoContent()); }
public async Task <ActionResult <Category> > DeleteCategory([FromRoute] int id) { if (!await categoryDAO.DeleteAsync(id)) { return(StatusCode(categoryDAO.GetCustomError().StatusCode, categoryDAO.GetCustomError())); } return(NoContent()); }