Ejemplo n.º 1
0
        public async Task <IActionResult> Index(string returnUrl)
        {
            var request = await m_interaction.GetAuthorizationContextAsync(returnUrl);

            if (request == null)
            {
                ModelState.AddModelError(Translator.Translate("error-occured"));
                return(View());
            }

            var vm = ViewModelBuilder.BuildConsentViewModel(ModelState, request, returnUrl);

            return(View(vm));
        }