コード例 #1
0
        public void OnGet()
        {
            UserSession = this.GetUserSession();
            if (UserSession != null)
            {
                var list = _CourseSrv.GetCoursePriceList();

                PriceList       = list.Where(a => a.CourseScheduleType == CourseScheduleType.Standard).ToList();
                SummerPriceList = list.Where(a => a.CourseScheduleType == CourseScheduleType.Summer).ToList();
                WinterPriceList = list.Where(a => a.CourseScheduleType == CourseScheduleType.Winter).ToList();
                if (UserSession.MemeberType == MemberType.VIP)
                {
                    VIPPriceList = list.Where(a => a.CourseScheduleType == CourseScheduleType.VIP).ToList();
                }
            }
        }