예제 #1
0
        public static IEnumerable <CustomerDisplay> GetAllCustomers()
        {
            var query = new CachedCustomerQuery(MerchelloContext.Current.Services.CustomerService, false);

            return(query.Search(1, long.MaxValue).Items.Select(x => (CustomerDisplay)x));
        }
예제 #2
0
        public static CustomerDisplay GetByKey(string key)
        {
            var query = new CachedCustomerQuery(MerchelloContext.Current.Services.CustomerService, false);

            return(query.GetByKey(new Guid(key)));
        }