コード例 #1
0
        public ActionResult List(DataSourceRequest command, ApplyPromoterListModel model)
        {
            var promoters = _applyService.GetAllList(keywords: model.Keywords,
                                                     audit: model.Audit,
                                                     createdFrom: model.StartDate,
                                                     createdTo: model.EndDate,
                                                     pageIndex: command.Page,
                                                     pageSize: command.PageSize);

            var jsonData = new DataSourceResult
            {
                ExtraData = promoters.Items.Select(b => new
                {
                    Id           = b.Id,
                    NickName     = b.NickName,
                    Mobile       = b.Mobile,
                    CreationTime = b.CreationTime.ToString("yyyy/mm/dd")
                }),
            };

            return(AbpJson(jsonData));
        }
コード例 #2
0
        public ActionResult List()
        {
            var model = new ApplyPromoterListModel();

            return(View(model));
        }