// DELETE api/values/5 //[Authorize(Roles = Roles.Admin)] public IHttpActionResult Delete(int id) { if (!_business.Delete(id)) { return(InternalServerError()); } return(Ok()); }
// DELETE api/<controller>/5 public User Delete(int id) { var deletedUser = userBusinessLogic.Delete(id); return(deletedUser); }