public virtual void AddRange(IEnumerable <TViewModel> viewModels) { var entities = _mapper.GetEntities(viewModels); entities = SetUserOnAddRange(entities, _serviceUser); _repository.AddRange(entities, _autoSave); }