public void DeleteCustomer(Guid id) { if (id == Guid.Empty) { throw new ArgumentNullException("id"); } BasicInformationLogic.DeleteCustomer(id); }
public void UpdateCustomer(Customer customer) { if (customer.Id == Guid.Empty) { throw new ArgumentNullException("customer.Id"); } BasicInformationLogic.UpdateCustomer(customer); }
public Customer GetCustomerById(Guid id) { if (id == Guid.Empty) { throw new ArgumentNullException("id"); } return(BasicInformationLogic.GetCustomerById(id)); }
public Customer GetCustomerByName(string name) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } return(BasicInformationLogic.GetCustomerByName(RequestContext.Current.TenantId, name)); }
public Customer CreateCustomer(string name, string description, string address, string phone) { if (string.IsNullOrEmpty(name)) { throw new ArgumentNullException("name"); } return(BasicInformationLogic.CreateCustomer(RequestContext.Current.TenantId, name, description, address, phone)); }
public Customer[] FindCustomersByName(string nameToMatch) { return(BasicInformationLogic.FindCustomersByName(RequestContext.Current.TenantId, nameToMatch)); }