Exemple #1
0
        public ActionResult ActivitiesMain(DataAction ActionType, string guid, string selectCreateTime,
                                           string selectTitleName, string selectHtmlContext, string selectStartDate, string selectEndDate, int pages = 1)
        {
            TempData["DataAction"] = ActionType;
            ActitiesDetailViewModel data = new ActitiesDetailViewModel();

            data = _ActivityService.ReturnActitiesDetailViewModel(ActionType, guid);

            #region KeepSelectBlock

            pages = pages == 0 ? 1 : pages;
            TempData["ActitiesSelect"] = new ActitiesViewModel()
            {
                Header = new ActitiesListHeaderViewModel()
                {
                    CreateTime  = selectCreateTime,
                    EndDate     = selectEndDate,
                    HtmlContext = selectHtmlContext,
                    StartDate   = selectStartDate,
                    TitleName   = selectTitleName
                },
                page = pages
            };

            #endregion KeepSelectBlock

            return(View(data));
        }