public Client SaveClient(Client client) { using (Database db = DbFactory.PayDbFactory.GetDatabase()) { db.Save<Client>(client); return client; } }
public ActionResult Edit(int id, Client client) { try { _adminRepo.SaveClient(client); return RedirectToAction("Index"); } catch { return View(); } }