public void OnGet() { UserSession = base.GetUserSession(); var list = _CourseSrv.GetAllList(); var curct = -1; CourseDic = new Dictionary <int, List <ECourseInfo> >(); foreach (var c in list) { int ct = (int)c.CourseType; if (curct != ct) { curct = ct; CourseDic.Add(ct, new List <ECourseInfo>()); CourseDic[ct].Add(c); } else { CourseDic[ct].Add(c); } } TrialTime = StaticDataSrv.TrialTime; }
public void OnGet() { TrialTime = StaticDataSrv.TrialTime; var list = _CourseSrv.GetAllList(); var curct = -1; CourseDic = new Dictionary <int, List <ECourseInfo> >(); foreach (var c in list) { int ct = (int)c.CourseType; if (curct != ct) { curct = ct; CourseDic.Add(ct, new List <ECourseInfo>()); CourseDic[ct].Add(c); } else { CourseDic[ct].Add(c); } } SalesUserList = _UserSrv.GetSalesUserList(); //var Id = Request.Query["Id"]; //if (!string.IsNullOrEmpty(Id)) //{ // // UpdateTrialLog = _CourseSrv.GetTrialLogById(Convert.ToInt64(Id)); //} }
public void OnGet() { CourseTimes = StaticDataSrv.CourseTime.Values.ToList(); CourseList = _CourseSrv.GetAllList(); CourseScheduleType = BaseEnumSrv.CourseScheduleTypeList; }