public ActionResult ExtraRatioAdd() { var channellist = MobileUIService.GetMobileChannelList(); ViewData["Channellist"] = channellist.GetSelectList(); return(View()); }
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)); }
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()); }