public async Task <IActionResult> GetResetPasswordResourceTemplate()
        {
            IEnumerable <AuthenticationServiceTypeAdto> authenticationServiceTypeAdtos = await _authenticationServiceApplicationService.GetAuthenticationServiceTypes();

            return(Ok(_resourceBuilder.BuildCollection(new AuthenticationServiceTypesResource
            {
                Results = _mapper.Map <IEnumerable <AuthenticationServiceTypeAdto>, IList <AuthenticationServiceTypeResource> >(authenticationServiceTypeAdtos)
            })));
        }
        public async Task <IActionResult> Get()
        {
            IEnumerable <ApplicationResource> applicationResources = (await _applicationApplicationService.GetAllAsync()).Select(a => new ApplicationResource
            {
                Name       = a.Name,
                SystemName = a.SystemName
            });

            return(Ok(_resourceBuilder.BuildCollection(new ApplicationsResource
            {
                Results = applicationResources.ToList()
            })));
        }
        public async Task <IActionResult> Get([FromQuery] string redirectUri,
                                              [FromQuery] string state)
        {
            IEnumerable <AuthenticationServiceAdto> authenticationServiceAdtos = await _authenticationServiceApplicationService.GetAuthenticationServicesAsync(new GetAuthenticationServicesAdto
            {
                RedirectUri = redirectUri,
                State       = state
            });

            return(Ok(_resourceBuilder.BuildCollection(new AuthenticationServicesResource
            {
                Results = _mapper.Map <IEnumerable <AuthenticationServiceAdto>, IList <AuthenticationServiceSummaryResource> >(authenticationServiceAdtos)
            })));
        }