public ActionResult DeleteConfirmed(int id) { User clientuser = userFactory.GetUser(id); userFactory.DeleteUser(clientuser); return(RedirectToAction("Index")); }
public IHttpActionResult DeleteUser(int id) { var result = _userFactory.DeleteUser(id); if (result) { return(Ok()); } else { return(NotFound()); } }