public async Task <bool> Add <TEntity>(List <TEntity> entities) where TEntity : class { try { await _dataContext.AddRangeAsync(entities.AsEnumerable()); return(true); } catch (Exception) { return(false); } }