public ActionResult Details(int?id) { if (id == null || !UsersBL.Exists(id.Value)) { return(RedirectToAction("Index")); } return(View(UsersBL.Details(id.Value))); }
public ActionResult Edit(int?id) { if (id == null || !UsersBL.Exists(id.Value)) { return(RedirectToAction("Index")); } User editUser = UsersBL.Details(id.Value); return(View(editUser)); }