Exemplo n.º 1
0
 public ActionResult Create(Enterprise ent, User user)
 {
     if (ModelState.IsValid)
     {
         ent.User = user;
         _service.Create(ent);
         return(RedirectToAction("SignIn", "Login", ent.Id));
     }
     return(View(ent));
 }