public ActionResult AboutDelete(int?id) { var about = aboutManager.Find(x => x.Id == id); int isDelete = aboutManager.Delete(about); return(RedirectToAction("About")); }
public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } About about = aboutManager.Find(x => x.Id == id.Value); if (about == null) { return(HttpNotFound()); } return(View(about)); }