Example #1
0
        public ListPromotionLog AjaxRecommendLog(int PageIndex, int userId)
        {
            var request = new MemberRecommendLogRequest();

            request.PageIndex = PageIndex;
            request.PageSize  = 1000;
            request.salerId   = userId;
            var query = RecommendLogService.MemberQuery(request);

            if (query != null)
            {
                RecommendLogs.List = query.ModelList.Select(x => new PromotionModel()
                {
                    submitTime = x.submitTime.ToString(), Name = string.Format("推荐会员{0}成功", x.userName)
                }).ToList();
                Page(request.PageIndex, request.PageSize, query.TotalCount, RecommendLogs);
            }
            return(RecommendLogs);
        }