Esempio n. 1
0
        // 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());
        }
Esempio n. 2
0
 // GET: Member/Home
 public ActionResult Index()
 {
     return(View(_channelService.GetActive()));
 }
 public ActionResult Listele()
 {
     return(View(_channelService.GetActive()));
 }