Example #1
0
        public List <ShortInfoDay> DataChange(DataChange change)
        {
            switch (change)
            {
            case Enums.DataChange.AddWeeks:
                From = From.Value.AddDays(7);
                To   = To.Value.AddDays(7);
                break;

            case Enums.DataChange.DecWeeks:
                From = From.Value.AddDays(-7);
                To   = To.Value.AddDays(-7);
                break;

            case Enums.DataChange.Add5Weeks:
                From.Value.AddDays(35);
                To.Value.AddDays(35);
                break;

            case Enums.DataChange.Dec5Weeks:
                From.Value.AddDays(-35);
                To.Value.AddDays(-35);
                break;

            default:
                break;
            }
            return(List = _rep.GetSch1(From, To));
        }