public void Remover(ClienteViewModel clienteViewModel)
 {
     var cliente = Mapper.Map<ClienteViewModel, Cliente>(clienteViewModel);
     _clienteService.Remover(cliente);
 }
 public ActionResult Edit(ClienteViewModel clienteViewModel)
 {
     if (ModelState.IsValid)
     {
         _clienteAppService.Atualizar(clienteViewModel);
         return RedirectToAction("Index");
     }
     return View(clienteViewModel);
 }
 public void Atualizar(ClienteViewModel clienteViewModel)
 {
     var cliente = Mapper.Map<ClienteViewModel, Cliente>(clienteViewModel);
     _clienteService.Atualizar(cliente);
 }