Beispiel #1
0
        //public List<SportsSeasonsBLL> GetByHolidayTypeID(int HolidayTypeID)
        //{
        //    return GetSportsSeasons().Where(x => x.HolidayType.HolidayTypeID.Equals(HolidayTypeID)).ToList();
        //}

        public List <SportsSeasonsBLL> GetBySportsSeasonByCurrentYear(int MaturityYear)
        {
            List <SportsSeasonsBLL> SportsSeasonBLL   = new List <SportsSeasonsBLL>();
            List <SportsSeasons>    SportsSeasonsList = new SportsSeasonsDAL().GetSportsSeasons().Where(x => x.MaturityYearsBalances.MaturityYear == (int)MaturityYear).ToList();// GetByHolidaySettingID(HolidaySettingID);

            foreach (var SportsSeason in SportsSeasonsList)
            {
                SportsSeasonBLL.Add(this.MapSportsSeason(SportsSeason));
            }
            return(SportsSeasonBLL);
        }
Beispiel #2
0
        public SportsSeasonsBLL GetBySportsSeasonID(int SportsSeasonID)
        {
            SportsSeasonsBLL SportsSeasonBLL = null;
            SportsSeasons    SportsSeason    = new SportsSeasonsDAL().GetBySportsSeasonID(SportsSeasonID);// GetByHolidaySettingID(HolidaySettingID);

            if (SportsSeason != null)
            {
                SportsSeasonBLL = new SportsSeasonsBLL().MapSportsSeason(SportsSeason);
            }
            return(SportsSeasonBLL);
        }
Beispiel #3
0
        public List <SportsSeasonsBLL> GetByMaturityYearID(int MaturityYearID)
        {
            List <SportsSeasonsBLL> SportsSeasonBLL   = new List <SportsSeasonsBLL>();
            List <SportsSeasons>    SportsSeasonsList = new SportsSeasonsDAL().GetSportsSeasons().Where(x => x.MaturityYearID == MaturityYearID).ToList();// GetByHolidaySettingID(HolidaySettingID);

            foreach (var SportsSeason in SportsSeasonsList)
            {
                SportsSeasonBLL.Add(this.MapSportsSeason(SportsSeason));
            }
            return(SportsSeasonBLL);
        }
Beispiel #4
0
        public List <SportsSeasonsBLL> GetSportsSeasons()
        {
            List <SportsSeasons>    SportsSeasonsList    = new SportsSeasonsDAL().GetSportsSeasons();
            List <SportsSeasonsBLL> SportsSeasonsBLLList = new List <SportsSeasonsBLL>();

            if (SportsSeasonsList.Count > 0)
            {
                foreach (var item in SportsSeasonsList)
                {
                    SportsSeasonsBLLList.Add(new SportsSeasonsBLL()
                    {
                        SportsSeasonID          = item.SportsSeasonID,
                        SportsSeasonStartDate   = item.SportsSeasonStartDate,
                        SportsSeasonEndDate     = item.SportsSeasonEndDate,
                        SportsSeasonDescription = item.SportsSeasonDescription,
                        MaturityYear            = new MaturityYearsBalancesBLL().MapMaturityYearBalance(item.MaturityYearsBalances),
                    });
                }
            }

            return(SportsSeasonsBLLList);
        }