示例#1
0
        public ActionResult ExtraRatioAdd()
        {
            var channellist = MobileUIService.GetMobileChannelList();

            ViewData["Channellist"] = channellist.GetSelectList();

            return(View());
        }
示例#2
0
        public ActionResult ExtraRatioEdit(int extraRatioId)
        {
            var channellist = MobileUIService.GetMobileChannelList();

            ViewData["Channellist"] = channellist.GetSelectList();

            var extraRatio = dbContextService.Single <NewsExtraRatio>(extraRatioId);

            ViewData["IsUpdate"] = true;
            return(View("ExtraRatioAdd", extraRatio));
        }
示例#3
0
        public ActionResult ExtraRatioList()
        {
            var channellist = MobileUIService.GetMobileChannelList();

            ViewData["Channellist"] = channellist.ToList();

            var extraratiolist = dbContextService.All <NewsExtraRatio>().ToList();

            ViewData["extraratiolist"] = extraratiolist;
            ViewData["TotalCount"]     = extraratiolist.Count;
            return(View());
        }