public Period GetPeriod(int periodId) { if (Periods.Any(c => c.PeriodId == periodId)) { return(Periods.First(c => c.PeriodId == periodId)); } return(null); }
protected string ExpandedPeriodTitles() { if (Periods == null || !Periods.Any()) { throw new ArgumentNullException("Properties"); } return(String.Join(", ", Periods.Select(p => p.WrappedTitle))); }