public Tuple <Payment, int> RegisterVacation(VacationDto vacationData) { Payment payment = FindById(vacationData.idPayment); if (payment.VacationList.Count >= 3) { throw new SgException("VacationLimit"); } Vacation vacation = new Vacation { Payment = payment, InitDate = vacationData.initDate, EndDate = vacationData.endDate, }; payment.VacationList.Add(vacation); if (payment.GetVacationDays() > 30) { throw new SgException("VacationDaysLimit"); } Save(payment); return(Tuple.Create(payment, vacation.GetDuration().Days)); }