public ActionResult Create(Restaurant restaurant) { try { restaurantManager.Add(restaurant); return RedirectToAction("Index"); } catch { return View(); } }
public void Update(Restaurant entity) { RestaurantRepo.Update(entity); }
// GET: Restaurant/Create public ActionResult Create() { var rest = new Restaurant(); return View(rest); }
public Restaurant Add(Restaurant entity) { RestaurantRepo.Add(entity); return entity; }