/// <summary> /// Updates an entity from a model. /// </summary> /// <param name="model">The model.</param> /// <param name="entity">The entity.</param> public static void UpdateEntity(this IdentityServer4.Models.PersistedGrant model, Entities.PersistedGrant entity) { Mapper.Map(model, entity); }
/// <summary> /// Maps an entity to a model. /// </summary> /// <param name="entity">The entity.</param> /// <returns></returns> public static IdentityServer4.Models.PersistedGrant ToModel(this Entities.PersistedGrant entity) { return(entity == null ? null : Mapper.Map <IdentityServer4.Models.PersistedGrant>(entity)); }