예제 #1
0
        public void DeleteCustomer(int id)
        {
            var cust = new WcfService1.Cor.Models.Customer {
                Id = id
            };

            _context.Entry(cust).State = EntityState.Deleted;
        }
예제 #2
0
 public void UpdateCustomer(Cor.Models.Customer customer)
 {
     customerRepository.UpdateCustomer(customer);
 }
예제 #3
0
 public async Task AddCustomerAsync(Cor.Models.Customer customer)
 {
     await customerRepository.AddCustomerAsync(customer);
 }
예제 #4
0
 public async Task AddCustomerAsync(WcfService1.Cor.Models.Customer customer)
 {
     await _context.Customers.AddAsync(customer);
 }
예제 #5
0
 public void UpdateCustomer(WcfService1.Cor.Models.Customer customer)
 {
     _context.Update(customer);
 }