public void DeleteCustomer(int id) { var cust = new WcfService1.Cor.Models.Customer { Id = id }; _context.Entry(cust).State = EntityState.Deleted; }
public void UpdateCustomer(Cor.Models.Customer customer) { customerRepository.UpdateCustomer(customer); }
public async Task AddCustomerAsync(Cor.Models.Customer customer) { await customerRepository.AddCustomerAsync(customer); }
public async Task AddCustomerAsync(WcfService1.Cor.Models.Customer customer) { await _context.Customers.AddAsync(customer); }
public void UpdateCustomer(WcfService1.Cor.Models.Customer customer) { _context.Update(customer); }