Example #1
0
 public ActionResult Cadastra(ClienteViewModel cliente)
 {
     if (!ModelState.IsValid)
     {
         return(View(cliente));
     }
     _application.Insere(Mapper.Map <Cliente>(cliente));
     return(RedirectToAction("Index"));
 }