protected override void OnLoad(EventArgs e) { this.SemesterField.DataSource = SemesterLogic.GetAll(); this.SemesterField.DataBind(); this.TeacherField.DataSource = TeacherLogic.GetAll(); this.TeacherField.DataBind(); this.CourseStatusField.DataSource = Enum.GetValues(typeof(DataAccess.CourseStatus)); this.CourseStatusField.DataBind(); }
private void BindList() { ListControl.DataBind(SemesterLogic.GetAll().ToList()); }
/// <summary>Gets a list of all of the Semesters in the database.</summary> /// <returns>An IEnumerable of Semesters.</returns> public IEnumerable <SO.Semester> GetSemesters(int page) { return(ServiceUtil.GetPage(SemesterLogic.GetAll(), page).Select(o => SO.Semester.FromDataAccessObject(o))); }
/// <summary>Gets a list of all of the Semesters in the database.</summary> /// <returns>An IEnumerable of Semesters.</returns> public IEnumerable <SO.Semester> GetSemesters(string page) { return(GetPage(SemesterLogic.GetAll(), page).Select(o => SO.Semester.FromDataAccessObject(o))); }