Ejemplo n.º 1
0
        public void Update(IEnumerable <ScoreModel> scores)
        {
            var entities = scores.Select(Map).ToList();

            _scoreRepository.CreateMany(entities.Where(x => x.Id == Guid.Empty).ToList());
            _scoreRepository.UpdateMany(entities.Where(x => x.Id != Guid.Empty).ToList());
            return;
        }