Exemplo n.º 1
0
 public ActionResult Create(DeveloperView view)
 {
     if (ModelState.IsValid)
     {
         var dev = mapper.Map <Developer>(view);
         gameService.AddDeveloper(dev);
         return(RedirectToAction("/Developer/Index"));
     }
     return(View());
 }
 public ActionResult Add(Developer developer)
 {
     gameService.AddDeveloper(developer.Name);
     return(Redirect("~/Editor/Index"));
 }