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()); }
public bool EditCustomer(Customer customer) { return(data.EditCustomer(customer)); }