예제 #1
0
 /// <summary>
 /// Maps a model to an existing entity instance
 /// </summary>
 /// <param name="model"></param>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static void ToEntity(this IdentityServer4.Models.Client model, Entities.Client entity)
 {
     Mapper.Map(model, entity);
 }
예제 #2
0
 /// <summary>
 /// Maps an entity to a model.
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static IdentityServer4.Models.Client ToModel(this Entities.Client entity)
 {
     return(entity == null ? null : Mapper.Map <IdentityServer4.Models.Client>(entity));
 }