Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(long id)
        {
            EventVision eventvision = db.EventVision.Find(id);

            db.EventVision.Remove(eventvision);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        //
        // GET: /SimEventVision/Details/5

        public ActionResult Details(long id = 0)
        {
            EventVision eventvision = db.EventVision.Find(id);

            if (eventvision == null)
            {
                return(HttpNotFound());
            }
            return(View(eventvision));
        }
Exemplo n.º 3
0
 public ActionResult Edit(EventVision eventvision)
 {
     if (ModelState.IsValid)
     {
         db.Entry(eventvision).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(eventvision));
 }
Exemplo n.º 4
0
        public ActionResult Create(EventVision eventvision)
        {
            if (ModelState.IsValid)
            {
                db.EventVision.Add(eventvision);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(eventvision));
        }