Beispiel #1
0
        public static List <BounceItem> GetBouncedListByHour(IRepoStrategy <hcc_Order> repo, long storeId,
                                                             DateTime rangeStart, DateTime rangeEnd, Guid?productGuid = null, Guid?categoryGuid = null)
        {
            var bouncedList = new List <BounceItem>();
            var result      = repo.ExecFunction <hcc_GetBouncedListByHour_Result>("GetBouncedListByHour",
                                                                                  new
            {
                storeId,
                rangeStart,
                rangeEnd,
                productGuid,
                categoryGuid
            }
                                                                                  );

            foreach (var item in result)
            {
                bouncedList.Add(new BounceItem
                {
                    Day    = item.Day.Value,
                    Hour   = item.Hour.Value,
                    Amount = item.Count.Value
                });
            }
            return(bouncedList);
        }
Beispiel #2
0
 public static IList <hcc_GetPromotionsActivityList_Result> GetPromotionsActivityList(
     IRepoStrategy <hcc_Order> repo, long storeId, DateTime startDateUtc, DateTime endDateUtc)
 {
     return(repo.ExecFunction <hcc_GetPromotionsActivityList_Result>("GetPromotionsActivityList",
                                                                     new
     {
         StoreId = storeId,
         StartDateUtc = startDateUtc,
         EndDateUtc = endDateUtc
     }));
 }