コード例 #1
0
        public void CheckFormationRemoved(List <Formation> listFormation, Guid idCoach)
        {
            var oldList = _repository.GetAllByCoach(idCoach);

            foreach (var formation in oldList)
            {
                if (!listFormation.Contains(formation))
                {
                    _repository.Delete(formation);
                }
            }
        }