public ActionResult Editar(int id, ClientVM model) { try { var client = Map(model); _clientService.Update(client); return RedirectToAction("Index"); } catch { return View(model); } }
public Client Map(ClientVM model) { return Mapper.Map<ClientVM, Client>(model); }