コード例 #1
0
 public void DeleteCustomer(Guid id)
 {
     if (id == Guid.Empty)
     {
         throw new ArgumentNullException("id");
     }
     BasicInformationLogic.DeleteCustomer(id);
 }
コード例 #2
0
 public void UpdateCustomer(Customer customer)
 {
     if (customer.Id == Guid.Empty)
     {
         throw new ArgumentNullException("customer.Id");
     }
     BasicInformationLogic.UpdateCustomer(customer);
 }
コード例 #3
0
 public Customer GetCustomerById(Guid id)
 {
     if (id == Guid.Empty)
     {
         throw new ArgumentNullException("id");
     }
     return(BasicInformationLogic.GetCustomerById(id));
 }
コード例 #4
0
 public Customer GetCustomerByName(string name)
 {
     if (string.IsNullOrEmpty(name))
     {
         throw new ArgumentNullException("name");
     }
     return(BasicInformationLogic.GetCustomerByName(RequestContext.Current.TenantId, name));
 }
コード例 #5
0
 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));
 }
コード例 #6
0
 public Customer[] FindCustomersByName(string nameToMatch)
 {
     return(BasicInformationLogic.FindCustomersByName(RequestContext.Current.TenantId, nameToMatch));
 }