Ejemplo n.º 1
0
 public ActionResult Create(tVenue venue)
 {
     try
     {
         // TODO: Add insert logic here
         if (ModelState.IsValid)
         {
             db.tVenue.Add(venue);
             db.SaveChanges();
             return RedirectToAction("Index");
         }
         return View(venue);
     }
     catch
     {
         return View(venue);
     }
 }
Ejemplo n.º 2
0
 //
 // GET: /tSection/
 public ActionResult Index(tVenue venue)
 {
     var sections = db.tSection.Where(a=>a.tVenueId==venue.tVenueId);
     ViewBag.tVenueId = venue.tVenueId;
     return View(sections);
 }
Ejemplo n.º 3
0
 public ActionResult Edit(tVenue venue)
 {
     if (ModelState.IsValid)
     {
         db.Entry(venue).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(venue);
 }