public Period GetPeriod(int periodId)
 {
     if (Periods.Any(c => c.PeriodId == periodId))
     {
         return(Periods.First(c => c.PeriodId == periodId));
     }
     return(null);
 }
Exemple #2
0
        protected string ExpandedPeriodTitles()
        {
            if (Periods == null || !Periods.Any())
            {
                throw new ArgumentNullException("Properties");
            }

            return(String.Join(", ", Periods.Select(p => p.WrappedTitle)));
        }