public List <StudentAssessment> AssessMe(StudentEnrollment student) { FeeService fs = new FeeService(); List <Fee> feeList = new List <Fee>(); Fee FeeforAll = new Fee(); feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY); FeeforAll = fs.GetFeeForAll(student.SY); if (FeeforAll.Amount != null) { feeList.Add(FeeforAll); } foreach (Fee f in feeList) { StudentAssessmentBDO sabdo = new StudentAssessmentBDO() { StudentSY = student.StudentSY, FeeID = f.FeeID, DiscountId = student.DiscountId }; sal.AssessStudent(sabdo); } return(GetStudentAssessment(student.StudentId, student.SY)); }
public List <Fee> GetStudentFees(StudentEnrollment student) { FeeService fs = new FeeService(); List <Fee> feeList = new List <Fee>(); //Changed feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY); feeList.Add(fs.GetFeeForAll(student.SY)); foreach (Fee f in feeList) { StudentAssessmentBDO sabdo = new StudentAssessmentBDO() { StudentSY = student.StudentSY, FeeID = f.FeeID, DiscountId = student.DiscountId }; } return(feeList); }
public List<Fee> GetStudentFees(StudentEnrollment student) { FeeService fs = new FeeService(); List<Fee> feeList = new List<Fee>(); //Changed feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY); feeList.Add(fs.GetFeeForAll(student.SY)); foreach (Fee f in feeList) { StudentAssessmentBDO sabdo = new StudentAssessmentBDO() { StudentSY = student.StudentSY, FeeID = f.FeeID, DiscountId = student.DiscountId }; } return feeList; }
public List<StudentAssessment> AssessMe(StudentEnrollment student) { FeeService fs = new FeeService(); List<Fee> feeList = new List<Fee>(); Fee FeeforAll = new Fee(); feeList = fs.GetAllFeesForGradeLevel(student.GradeLevel, student.SY); FeeforAll = fs.GetFeeForAll(student.SY); if (FeeforAll.Amount != null) feeList.Add(FeeforAll); foreach (Fee f in feeList) { StudentAssessmentBDO sabdo = new StudentAssessmentBDO() { StudentSY = student.StudentSY, FeeID = f.FeeID, DiscountId = student.DiscountId }; sal.AssessStudent(sabdo); } return GetStudentAssessment(student.StudentId, student.SY); }