示例#1
0
        public ContentResult mail(MailQueryRequest request)
        {
            var userContext = UserContext.WebUserContext;

            if (userContext == null)
            {
                var res = new ResultDto <MailResponse>
                {
                    page    = request.PageIndex,
                    total   = request.Total,
                    records = request.Records,
                    rows    = null
                };
                return(Content(res.Serialize()));
            }
            else
            {
                request.MemberId = UserContext.WebUserContext.Id;
                var data = _mailService.List(request);
                var res  = new ResultDto <MailResponse>
                {
                    page    = request.PageIndex,
                    total   = request.Total,
                    records = request.Records,
                    rows    = data
                };
                return(Content(res.Serialize()));
            }
        }
示例#2
0
        public ContentResult list(VoteQueryRequest request)
        {
            var data = _voteService.List(request);
            var res  = new ResultDto <VoteResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#3
0
        public ContentResult listevent(PlayerOrRefereeEventQueryRequest request)
        {
            var data = _eventService.PlayerOrRefereeEvent(request);
            var res  = new ResultDto <PlayerOrRefereeEventResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#4
0
        public ContentResult listevent(EventAdminQueryRequest request)
        {
            var data = _eventService.AdminEventList(request);
            var res  = new ResultDto <EventResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#5
0
        public ContentResult refundlist(RefundOrderListQueryRequest request)
        {
            var data = _orderService.RefundList(request);
            var res  = new ResultDto <RefundOrderListResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
        public ContentResult listleavingmsg(LeavingMsgQueryRequest request)
        {
            var data = _leavingMsgService.List(request);
            var res  = new ResultDto <LeavingMsgResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
        public ContentResult listtempplayer(TempMemberQueryRequest request)
        {
            var data = _memberTempService.ListPlayer(request);
            var res  = new ResultDto <MemberTempResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#8
0
        public ContentResult emailloglist(EmailLogQueryRequest request)
        {
            var data = _emailLogService.List(request);
            var res  = new ResultDto <EmailLogResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
        public ContentResult refundlist(PlayerSignUpQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _playerSignUpService.PlayerRefundList(request);
            var res  = new ResultDto <PlayerRefundListResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#10
0
        public ContentResult pointsrecord(PlayerPointsRecordQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _memberPointsService.PlayerPointsRecord(request);
            var res  = new ResultDto <PlayerPointsRecordResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#11
0
        public ContentResult eventscorelist(PlayerEventScoreQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _eventScoreService.PlayerList(request);
            var res  = new ResultDto <EventScoreResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#12
0
        public ContentResult listrefereesignup(EventRefereeSignUpQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _refereeSignUpService.EventRefereeList(request);
            var res  = new ResultDto <EventRefereeSignUpListResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#13
0
        public ContentResult coachplayer(PlayerCoachQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _playerCoachService.Coach_PlayerList(request);
            var res  = new ResultDto <CoachPlayerResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            return(Content(res.Serialize()));
        }
示例#14
0
        public ContentResult playersignlist(PlayerSignQueryRequest request)
        {
            request.MemberId = UserContext.WebUserContext.Id;
            var data = _eventSignService.PlayerSignList(request);
            var res  = new ResultDto <PlayerSignResponse>
            {
                page    = request.PageIndex,
                total   = request.Total,
                records = request.Records,
                rows    = data
            };

            Initrendersign(request.EventId);
            return(Content(res.Serialize()));
        }