public ActionResult Create(RestaurantBusiness.Restaurant rest) { try { // TODO: Add insert logic here if (ModelState.IsValid) { //business logic rutility.AddRestaurant(rest); return(RedirectToAction("Index")); } else { return(View(rutility)); } } catch { log = LogManager.GetLogger("errors"); return(View()); } }