Beispiel #1
0
 public Client SaveClient(Client client)
 {
     using (Database db = DbFactory.PayDbFactory.GetDatabase())
     {
         db.Save<Client>(client);
         return client;
     }
 }
Beispiel #2
0
        public ActionResult Edit(int id, Client client)
        {
            try
            {
                _adminRepo.SaveClient(client);

                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }