Пример #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 identityModel.PersistedGrant model, entityModel.PersistedGrant entity, IMapper mapper)
 {
     mapper.Map(model, entity);
 }
Пример #2
0
 /// <summary>
 /// Maps an entity to a model.
 /// </summary>
 /// <param name="entity">The entity.</param>
 /// <returns></returns>
 public static identityModel.PersistedGrant ToModel(this entityModel.PersistedGrant entity, IMapper mapper)
 {
     return(entity == null ? null : mapper.Map <identityModel.PersistedGrant>(entity));
 }