Exemplo n.º 1
0
        public ActionResult Create(MenuMainDesert menuMainDesertSingle)
        {
            db.MenuMainDeserts.Add(menuMainDesertSingle);
            db.SaveChanges();

            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
 public ActionResult Edit(MenuMainDesert menuMainDesertSingle)
 {
     db.Entry(menuMainDesertSingle).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(RedirectToAction("Index"));
 }