Beispiel #1
0
        public async Task <ActionResult <IList <ThemeDto> > > GetAllThemes()
        {
            var themes = await _themeService.GetAllThemesAsync();

            return(Ok(themes));
        }
        public async Task <IActionResult> AllThemes()
        {
            var themes = await _themeService.GetAllThemesAsync(_protector.Unprotect(Request.Cookies["accessToken"]));

            return(View(themes));
        }