// DELETE: api/project/5 public IHttpActionResult Delete(int id) { return(Try(() => { return Ok(_projectFacade.Delete(id)); })); }
public IActionResult Delete(int id) { try { facade.Delete(id); return(new NoContentResult()); } catch (ArgumentException ex) { return(NotFound(ex)); } catch (Exception ex) { return(BadRequest(ex)); } }