public ActionResult Edit( ClientViewModel cl) { if (ModelState.IsValid) { var clientv = Mapper.Map<ClientViewModel, Client>(cl); _client.update(clientv); return RedirectToAction("Index"); } return View(cl); }
public ActionResult Delete(int id, ClientViewModel c) { _client.delete(id); return RedirectToAction("index"); }