public async Task <int> Add <T>(IEnumerable <T> entities) where T : BaseEntity { _dbContext.AddRange(entities); return(dbContextTransaction == null ? await CommitTrans() : 0); }