Ejemplo n.º 1
0
        public ActionResult List(int?page)
        {
            ResultListViewModel model = new ResultListViewModel();

            model.Filter.CurrentPage = page ?? 1;

            using (var module = new ResultModule())
            {
                model.Result      = module.DoGetList(model.Filter);
                model.Result.Data = model.Result.Data.Where(o => o.DISABLE == false).ToList();
            }

            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult ResultList(int?page, string qry, string sort, string disHome, string disable, string pDate)
        {
            ResultListViewModel model = new ResultListViewModel();

            model.Filter.CurrentPage        = page ?? 1;
            model.Filter.QueryString        = qry ?? string.Empty;
            model.Filter.SortColumn         = sort ?? string.Empty;
            model.Filter.Disable            = disable ?? string.Empty;
            model.Filter.DisplayForHomePage = disHome ?? string.Empty;
            model.Filter.PublishDate        = pDate ?? string.Empty;

            using (var module = new ResultModule())
            {
                model.Result = module.DoGetList(model.Filter);
            }

            return(View(model));
        }