public IActionResult Delete(int id) { try { stewardessService.DeleteEntity(id); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(NoContent()); }
public IActionResult Delete(int id) { try { stewardessService.DeleteEntity(id); } catch (ValidationException e) { return(BadRequest(new { Exception = e.Message })); } return(NoContent()); }