コード例 #1
0
ファイル: GameController.cs プロジェクト: seletli/Proje-1
        // GET: Member/Game
        public ActionResult Index()
        {
            List <Channel> Channels = _channelService.GetActive();

            Dictionary <string, string> ChannelLinks = new Dictionary <string, string>();

            TubeRehber.Model.Entities.Category category = _categoryService.GetCategoryByCategoryName("Oyun");
            foreach (var item in Channels)
            {
                if (item.CategoryID.ToString() == (category.ID).ToString())
                {
                    ChannelLinks.Add(item.ChannelName, item.ChannelLink);
                }
            }

            TempData["GameChannelLinks"] = ChannelLinks;

            return(View());
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: seletli/Proje-1
 // GET: Member/Home
 public ActionResult Index()
 {
     return(View(_channelService.GetActive()));
 }
コード例 #3
0
 public ActionResult Listele()
 {
     return(View(_channelService.GetActive()));
 }