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