Example #1
0
        public ActionResult SideBar()
        {
            var allSubs = _subDao.GetSubByNames(_contextService.GetSubscribedSubNames()).Select(x =>
            {
                var model          = _mapper.Map <Sub, SubModel>(x);
                model.IsSubscribed = true;
                return(model);
            }).ToList();

            return(PartialView("_SideBar", allSubs));
        }