Exemplo n.º 1
0
        public ActionResult Create(Attraction attraction)
        {
            _db.Attractions.Add(attraction);
            _db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Create(EntertainmentType ET)
 {
     _db.EntertainmentTypes.Add(ET);
     _db.SaveChanges();
     return(RedirectToAction("Index"));
 }