Example #1
0
        public ActionResult Create(VoiceOut voiceout)
        {
            if (ModelState.IsValid)
            {
                db.VoiceOuts.Add(voiceout);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(voiceout);
        }
Example #2
0
 public ActionResult Edit(VoiceOut voiceout)
 {
     if (ModelState.IsValid)
     {
         db.Entry(voiceout).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(voiceout);
 }