public IList <Attendance> FillAttendance(IList <Attendance> list) { SqlFuns sf = new SqlFuns(); foreach (Attendance tmp in list) { tmp.StrStudent = sf.SearchStudent(tmp.Student).Name; tmp.StrCourse = sf.SearchCourseID(tmp.Course).Name; } return(list); }
public IList <Payment> FillPayment(IList <Payment> list) { SqlFuns sf = new SqlFuns(); foreach (Payment tmp in list) { tmp.StrStuName = sf.SearchStudent(tmp.Stnum).Name; tmp.StrPayFor = sf.SearchPayFor(tmp.Payfor).Description; } return(list); }