public ActionResult Create(Actor actor) { try { if (ModelState.IsValid) { service.AddorUpdate(actor, false); return(RedirectToAction("Index")); } return(View(actor)); } catch { return(View()); } }
public ActionResult Create(Actor actor) { try { if (ModelState.IsValid) { service.AddorUpdate(actor, false); return(RedirectToAction("Index")); } return(View(actor)); } catch { return(View()); } }