Exemplo n.º 1
0
 public IActionResult Add(SuperHeroViewModel vm)
 {
     if (!ModelState.IsValid)
     {
         return(View(vm));
     }
     logic.AddHero(vm);
     return(RedirectToAction("Index"));
 }