private DeviceAuthorizationViewModel CreateConsentViewModel(string userCode, DeviceAuthorizationInputModel model, Client client, Resources resources) { var vm = ConsentViewModelFactory.CreateConsentViewModel(model, client, resources) as DeviceAuthorizationViewModel; vm.UserCode = userCode; return(vm); }
private ConsentViewModel CreateConsentViewModel( ConsentInputModel model, string returnUrl, AuthorizationRequest request, Client client, Resources resources) { var vm = ConsentViewModelFactory.CreateConsentViewModel(model, client, resources); vm.ReturnUrl = returnUrl; return(vm); }