public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Lop lop = contextLop.GetById(id); if (lop == null) { return(HttpNotFound()); } return(View(lop)); }
public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } Lop lop = contextLop.GetById(id); if (lop == null) { return(HttpNotFound()); } return(View(lop)); }