public IActionResult EditEmployee(int id, Acustomer customer)
        {
            var existingCust = customerData.GetCustomer(id);

            if (existingCust != null)
            {
                customer.Id = existingCust.Id;
                customerData.EditCustomer(customer);
                return(Ok(customer));
            }
            return(NotFound());
        }
Example #2
0
 public bool EditCustomer(Customer customer)
 {
     return(data.EditCustomer(customer));
 }