Ejemplo n.º 1
0
 /// <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);
 }
Ejemplo n.º 2
0
 /// <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));
 }