/// <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 PersistedGrant model, Duende.IdentityServer.EntityFramework.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 PersistedGrant ToModel(this Duende.IdentityServer.EntityFramework.Entities.PersistedGrant entity) { return(entity == null ? null : Mapper.Map <PersistedGrant>(entity)); }