예제 #1
0
 public async Task <IActionResult> Create(PerfilViewModel perfil)
 {
     if (ModelState.IsValid)
     {
         _perfilService.Criar(perfil);
         return(RedirectToAction(nameof(Index)));
     }
     return(View(perfil));
 }