public virtual async Task <TEntity> AddAsync(TEntity obj)
        {
            await _Repository.AddAsync(obj);

            await _UnitOfWork.CommitAsync();

            return(obj);
        }
Example #2
0
 public async Task <TEntity> AddAsync(TEntity obj) => await _Repository.AddAsync(obj);