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

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

            return(View());
        }
Beispiel #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));
        }
Beispiel #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());
        }