// GET: Gecko/Edit/5 public ActionResult Edit(int id) { try { using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) { GeckoBLL g = ctx.FindGeckoByID(id); { if (g == null) { return(View("ItemNotFound")); } else { return(View(g)); } } } } catch (Exception ex) { return(View("Error", ex)); } }