Beispiel #1
0
        public void CheckSpecialityRemoved(List <Speciality> listSpeciality, Guid idCoach)
        {
            var oldList = _repository.GetAllByCoach(idCoach);

            foreach (var speciality in oldList)
            {
                if (!listSpeciality.Contains(speciality))
                {
                    _repository.Delete(speciality);
                }
            }
        }