public void updateCustomer(VCustomerUpdate updateCustomer) { using (var context = new CustomerProductDbContext()) { context.VCustomerUpdate.Update(updateCustomer); context.SaveChanges(); } }
public IActionResult Put(VCustomerUpdate customer) { d.updateCustomer(customer); return(Ok("Updated Successfully")); }