コード例 #1
0
ファイル: CustomerQuery.cs プロジェクト: ProNotion/Merchello
        public static CustomerDisplay GetByKey(string key)
        {
            var query = new CachedCustomerQuery(MerchelloContext.Current.Services.CustomerService);

            return query.GetByKey(new Guid(key));
        }
コード例 #2
0
ファイル: CustomerQuery.cs プロジェクト: ProNotion/Merchello
        public static IEnumerable<CustomerDisplay> GetAllCustomers()
        {
            var query = new CachedCustomerQuery(MerchelloContext.Current.Services.CustomerService);

            return query.Search(1, long.MaxValue).Items.Select(x => (CustomerDisplay)x);
        }