예제 #1
0
 public async Task AddAsync(TEntityDto entity)
 {
     await repository.AddAsync(Mapper.Map <TEntity>(entity));
 }
예제 #2
0
 /// <summary>
 /// Adds the asynchronous.
 /// </summary>
 /// <param name="entity">The entity.</param>
 public virtual async Task AddAsync(TEntityDto entity)
 {
     await repository.AddAsync(serviceMapper.Map <TEntity>(entity)).ConfigureAwait(false);
 }