コード例 #1
0
ファイル: CMSController.cs プロジェクト: sumitNMG/StratasFair
        private ActionResult BindCMSList()
        {
            CMSHelper cmsHelper = new CMSHelper();
            CMSModel  model     = new CMSModel();

            model.Flag = 1;
            var CMSList = cmsHelper.GetAll(model.Flag).ToList();

            ActiveCMSList   = CMSList.Where(x => x.Status == 1).ToList();
            InActiveCMSList = CMSList.Where(x => x.Status == 0).ToList();
            return(View(Tuple.Create(ActiveCMSList, InActiveCMSList, model)));
        }