Пример #1
0
        public async Task <IActionResult> Open()
        {
            var cookieJar = new CookieJar();

            await _authorizationService.AuthorizeAsync(User, cookieJar, CookieJarAuthOperations.Open);

            return(View());
        }
Пример #2
0
        public async Task <IActionResult> Open()
        {
            var cookieJar = new CookieJar(); //make Db connection
            //var requirement = new OperationAuthorizationRequirement()
            //{
            //    Name = CookieJarOperations.Open
            //};
            await _authorizationService.AuthorizeAsync(User, cookieJar, CookieJarAuthOperations.Open);

            return(View());
        }