예제 #1
0
 public bool SaveCustomer(Customer customer)
 {
     return(CustomerRepository.Save(customer));
 }
예제 #2
0
 public List <Customer> GetCustomers()
 {
     return(CustomerRepository.LoadAll());
 }
        public Customer Save(Customer customer)
        {
            var result = CustomerRepository.Save(customer);

            return(result);
        }
        public Customer Load(int customerId)
        {
            Customer customer = CustomerRepository.Load(customerId);

            return(customer);
        }
        public List <Customer> LoadAll()
        {
            List <Customer> customers = CustomerRepository.LoadAll();

            return(customers);
        }