public ActionResult DeleteUser(int id) { if (bllModel.DeleteUser(id)) { return(RedirectToAction("Index")); } else { return(HttpNotFound()); } }
public IHttpActionResult DeleteUser(int id) { if (bllModel.DeleteUser(id)) { return(Ok()); } else { return(NotFound()); } }