public virtual async Task <bool> AddRangeAsync(List <T> entity) { foreach (var item in entity) { item.IsActive = true; item.Deleted = false; } await _context.AddRangeAsync(entity).ConfigureAwait(false); return(true); }