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

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