public Access.IterationTimePeriod getCurrentTimePeriod()
 {
     Access.IterationTimePeriods tempList = new IterationTimePeriods();
     tempList.AddRange(this.OrderBy(f => f.IterationTimePeriodStartDate).Where(f => DateTime.Now >= f.IterationTimePeriodStartDate && DateTime.Now <= f.IterationTimePeriodEndDate));
     if (tempList.Count() > 0)
     {
         return(tempList.First());
     }
     else
     {
         return(this.OrderBy(f => f.IterationTimePeriodStartDate).First());
     }
 }
 public Access.IterationTimePeriods SelectByIteration(Access.Iteration Iteration)
 {
     Access.IterationTimePeriods tmp = new IterationTimePeriods(this.Where(f => f.IterationID.IterationID == Iteration.IterationID));
     return(tmp);
 }
 public System.Collections.IList GetList()
 {
     Avenue.Workflow.Access.IterationTimePeriods aIterationTimePeriods = new IterationTimePeriods(this);
     return((System.Collections.IList)aIterationTimePeriods);
 }