public ActionResult Create(VoiceOut voiceout) { if (ModelState.IsValid) { db.VoiceOuts.Add(voiceout); db.SaveChanges(); return RedirectToAction("Index"); } return View(voiceout); }
public ActionResult Edit(VoiceOut voiceout) { if (ModelState.IsValid) { db.Entry(voiceout).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(voiceout); }