public bool Edit(Customer customer) { if (customer == null) { return(false); } _customerAdminRepository.EditCustomer(customer); return(true); }
public bool EditCustomer(long id, string name, string phone) { var customer = new Customer() { id = id, Name = name, phone = phone }; var ediCustomerSuccess = _customerAdminRepository.EditCustomer(customer); return(ediCustomerSuccess); }