Ejemplo n.º 1
0
 public Customer AssignPolicy(Customer customer)
 {
     try
     {
         _context.Customers.Update(customer);
         _context.SaveChangesAsync();
         return(customer);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void AssignPolicy(Customer customer)
 {
     try
     {
         //_DbContext.Entry(customer).State = EntityState.Modified;
         _DbContext.Customers.Update(customer);
         _DbContext.SaveChangesAsync();
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }