public async Task AddAsync(TEntityDto entity) { await repository.AddAsync(Mapper.Map <TEntity>(entity)); }
/// <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); }