public bool Add(Student student) { StudentRepository studentRepository = new StudentRepository(); return(studentRepository.InsertStudent(student)); }
public bool MakePayment(string studentID, decimal payment) { StudentRepository studentRepo = new StudentRepository(); return(studentRepo.MakePayment(studentID, payment)); }
public List <Student> GetMatchingStudents(string id = null, string parttialLastName = null) { StudentRepository studentRepository = new StudentRepository(); return(studentRepository.RetrieveMatchingStudents(id, parttialLastName)); }
//Payment #region Payment public List <Student> PaymentGetStudents(string searchCriteria, int searchBy) { StudentRepository studentRepo = new StudentRepository(); return(studentRepo.PaymentGetStudents(searchCriteria, searchBy)); }
//Check In #region Check In public Student GetStudentByResourceId(int resourceId) { StudentRepository studentRepo = new StudentRepository(); return(studentRepo.RetrieveStudentByResourceId(resourceId)); }
public int GetLastID() { StudentRepository studentRepository = new StudentRepository(); return(studentRepository.GetLastID()); }
public bool Remove(int studentId) { StudentRepository studentRepository = new StudentRepository(); return(studentRepository.Delete(studentId)); }
public bool Edit(Student student) { StudentRepository studentRepository = new StudentRepository(); return(studentRepository.Update(student)); }