public UserDeleteResponse Delete([FromBody] UserDeleteRequest request) { var response = new UserDeleteResponse(); _facade.Delete(request.Id); return(response); }
// DELETE: api/user/5 public IHttpActionResult Delete(int id) { return(Try(() => { return Ok(_userFacade.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)); } }