예제 #1
0
 public List <Customer> AddCustomer(Customer c)
 {
     customerRepo.Add(c);
     CustomerList = customerRepo.GetAllCustomer();
     return(CustomerList);
 }
예제 #2
0
 public CustomerService()
 {
     customerRepo = new CustomerRepositary(CustomerDbContext.Instance);
     CustomerList = new List <Customer>();
     CustomerList = customerRepo.GetAllCustomer();
 }