Exemplo n.º 1
0
 public ActionResult Create(Restaurant restaurant)
 {
     _db.Restaurants.Add(restaurant);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(Review review)
 {
     _db.Reviews.Add(review);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }
 public ActionResult Create(Category category)
 {
     _db.Categories.Add(category);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }