/// <summary> /// Convert from <see cref="IdentityServer4.Models.Scope"/> to <see cref="Scope"/> /// </summary> /// <param name="scope"></param> /// <returns></returns> public static Scope ToScope(this IdentityServer4.Models.Scope scope) { return(new Scope { Name = scope.Name, DisplayName = scope.DisplayName, Description = scope.Description, Emphasize = scope.Emphasize, Required = scope.Required }); }
/// <summary> /// Maps a model to an entity. /// </summary> /// <param name="model">The model.</param> /// <returns></returns> public static Entities.ApiScope ToEntity(this IdentityServer4.Models.Scope model) { return(Mapper.Map <Entities.ApiScope>(model)); }
/// <summary> /// Maps a model to an entity. /// </summary> /// <param name="model">The model.</param> /// <returns></returns> public static Neo4jIdentityServer4ApiScope ToNeo4jEntity( this IdentityServer4.Models.Scope model) { return(Mapper.Map <Neo4jIdentityServer4ApiScope>(model)); }