Esempio n. 1
0
        // GET: TodoList
        public async Task <ActionResult> Index()
        {
            if (!(User.IsInRole("Writer") || User.IsInRole("Reader") || User.IsInRole("Admin")))
            {
                return(Unauthorized());
            }

            return(View(await _todoListService.GetAsync()));
        }
      ScopeKeySection = "TodoList:TodoListScope", UserFlow = Susi)] // Must be the same user flow as used in `GetAccessTokenForUserAsync()`
 public async Task <ActionResult> Index()
 {
     return(View(await _todoListService.GetAsync(Susi)));
 }