Beispiel #1
0
        public ActionResult <List <IdentityResourceViewModel> > GetIdentityResources()
        {
            List <IdentityResourceViewModel> Result            = new List <IdentityResourceViewModel>();
            List <IdentityResource>          IdentityResources = Repository.GetIdentityResources();

            if (IdentityResources.Count > 0)
            {
                Result = IdentityResources.ConvertAll(x => new IdentityResourceViewModel()
                {
                    Name        = x.Name,
                    DisplayName = x.DisplayName
                });
            }
            return(Result);
        }