예제 #1
0
        public ActionResult ActivitiesList(ActitiesViewModel ViewModel, int page = 1)
        {
            ActitiesViewModel ResultViewModel;
            ActitiesViewModel searchBlock = (ActitiesViewModel)TempData["ActitiesSelect"];

            if (searchBlock == null) /*空*/
            {
                ResultViewModel = _ActivityService.GetActitiesListViewModel(new ActitiesListHeaderViewModel(), page);
            }
            else
            {
                ResultViewModel = _ActivityService.GetActitiesListViewModel(searchBlock.Header, page);
            }
            return(View(ResultViewModel));
        }