Exemple #1
0
        public void UpdateCustomerAddress(int CustomerId, string Address1, string Address2)
        {
            var Customer = data.GetCustomer(CustomerId);

            Customer.Address1 = Address1;
            Customer.Address2 = Address2;

            data.UpdateCustomer(Customer);
        }
        public IActionResult GetCustomer(int ID)
        {
            var customer = customerData.GetCustomer(ID);

            if (customer != null)
            {
                return(Ok(customer));
            }
            return(NotFound("Customer Not Found"));
        }
Exemple #3
0
 public Customer GetCustomer(PagedRequest <int> customerId)
 {
     return(customerData.GetCustomer(customerId));
 }