public ActionResult Edit(int id, RestaurantBusiness.Restaurant rest) { try { // TODO: Add update logic here if (ModelState.IsValid) { //business logic rutility.EditRestaurant(rest, id); return(RedirectToAction("Details", new { id = id })); } else { log = LogManager.GetLogger("errors"); return(View(rutility)); } } catch (Exception) { return(View()); } }