Пример #1
0
 public async Task UpdateAsync(TEntityDto entity)
 {
     await repository.UpdateAsync(Mapper.Map <TEntity>(entity));
 }
Пример #2
0
 /// <summary>
 /// Updates the asynchronous.
 /// </summary>
 /// <param name="entity">The entity.</param>
 public virtual async Task UpdateAsync(TEntityDto entity)
 {
     await repository.UpdateAsync(serviceMapper.Map <TEntity>(entity)).ConfigureAwait(false);
 }