Esempio n. 1
0
 public SetLoyalityCustomerSerializeAction(ICustomerRestClient customerRestClient,
                                           EntityLayer.Entities.Customer.Customer customerModel)
     : base("SetLoyalityCustomer")
 {
     _customerRestClient = customerRestClient;
     _customerModel      = customerModel;
 }
 public GetAllCustomersSerializeAction(
     ICustomerRestClient customerRestClient,
     int pageIndex, bool loyalty) : base("GetAllCustomers")
 {
     _restClient = customerRestClient;
     _pageIndex  = pageIndex;
     _loyalty    = loyalty;
 }
Esempio n. 3
0
 public SetCustomerForSaleSerializeAction(ICustomerRestClient restClient,
                                          ICacheManager cacheManager, string customerCode) :
     base("SetCustomerForSale")
 {
     _restClient   = restClient;
     _cacheManager = cacheManager;
     _customerCode = customerCode;
 }
 public SearchCustomersSerializeAction(ICustomerRestClient restClient,
                                       string searchTerm, int pageIndex, bool loyalty) :
     base("SearchCustomers")
 {
     _restClient = restClient;
     _searchTerm = searchTerm;
     _pageIndex  = pageIndex;
     _loyalty    = loyalty;
 }
Esempio n. 5
0
 public AddCustomerSerializeAction(
     ICustomerRestClient customerRestClient,
     ICacheManager cacheManager,
     EntityLayer.Entities.Customer.Customer customer) : base("AddCustomer")
 {
     _restClient   = customerRestClient;
     _cacheManager = cacheManager;
     _customer     = customer;
 }
Esempio n. 6
0
 public GetCustomerByCardSerializeAction(
     ICustomerRestClient customerRestClient,
     string cardNumber,
     bool isLoyaltycard,
     int saleNumber,
     int tillNumber) : base("GetCustomerByCard")
 {
     _restClient       = customerRestClient;
     _customerContract = new CustomerCardContract
     {
         cardNumber    = cardNumber,
         isLoyaltycard = isLoyaltycard,
         saleNumber    = saleNumber,
         tillNumber    = tillNumber
     };
 }
Esempio n. 7
0
 public CustomerSerializeManager(ICustomerRestClient customerRestClient,
                                 ICacheManager cacheManager)
 {
     _customerRestClient = customerRestClient;
     _cacheManager       = cacheManager;
 }