/// <summary>Gets a list of all of the Majors in the database.</summary> /// <returns>An IEnumerable of Majors.</returns> public IEnumerable <SO.Major> GetMajors(int page) { return(ServiceUtil.GetPage(MajorLogic.GetAll(), page).Select(o => SO.Major.FromDataAccessObject(o))); }
protected override void OnLoad(EventArgs e) { this.MajorField.DataSource = MajorLogic.GetAll(); this.MajorField.DataBind(); }
private void BindList() { ListControl.DataBind(MajorLogic.GetAll().ToList()); }
/// <summary>Gets a list of all of the Majors in the database.</summary> /// <returns>An IEnumerable of Majors.</returns> public IEnumerable <SO.Major> GetMajors(string page) { return(GetPage(MajorLogic.GetAll(), page).Select(o => SO.Major.FromDataAccessObject(o))); }