public ActionResult Edit(int id, BreedBLL edit) { try { using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) ctx.BreedUpdateJust(id, edit.BreedName); // TODO: Add update logic here return(RedirectToAction("Index")); } catch (Exception ex) { Logger.Logger.Log(ex); return(View("Error")); } }