public ActionResult Delete(Guid id) { if (!_reasonService.ExistsReason(id)) { return(NotFound(new ErrorData(StatusCodes.Status404NotFound, "Not found", null))); } _reasonService.DeleteReason(id); return(NoContent()); }
public ActionResult Delete(Guid id) { if (!_reasonService.ExistsReason(id)) { return(NotFound(new ErrorData(StatusCodes.Status404NotFound, "Not found", null))); } _reasonService.DeleteReason(id); return(NoContent()); }