public ActionResult UpdateClientInfo(Client c)
 {
     if (ModelState.IsValid)
     {
         cRepo.UpdateClient(c);
     }
     return RedirectToAction("ViewClients");
 }
        public void UpdateClient(Client c)
        {
            db.Entry(c).State = EntityState.Modified;
            db.SaveChanges();
            try
            {

            }
            catch (OptimisticConcurrencyException)
            {

               // db.Refresh(RefreshMode.ClientWins, db.Articles);
                //context.SaveChanges();
            }
        }
 public void saveClient(Client c)
 {
     db.Clients.Add(c);
     db.SaveChanges();
 }
 public void DeleteCleint(Client c)
 {
     db.Clients.Remove(c);
     db.SaveChanges();
 }
 public ActionResult AddClientInfo(Client e)
 {
     cRepo.saveClient(e);
     return RedirectToAction("ViewClients");
 }