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")); }
public Customer GetCustomer(PagedRequest <int> customerId) { return(customerData.GetCustomer(customerId)); }