コード例 #1
0
ファイル: Index.cshtml.cs プロジェクト: nso95/DevStreams
        public IActionResult OnGetAsync()
        {
            List <Channel> models = _channelAggregateService.GetAll();

            Channels = models.Select(model => model.ToChannelIndexModel()).ToList();

            return(Page());
        }
コード例 #2
0
ファイル: Index.cshtml.cs プロジェクト: skyhoshi/DevStreams
        public IActionResult OnGet()
        {
            var userId = HttpContext.User.Claims.FirstOrDefault(x => x.Type == ClaimTypes.NameIdentifier)?.Value;

            List <Channel> models = _channelAggregateService.GetAll(userId);

            Channels = models.Select(model => model.ToChannelIndexModel()).ToList();

            return(Page());
        }