Beispiel #1
0
        public bool Add(Student student)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.InsertStudent(student));
        }
Beispiel #2
0
        public bool MakePayment(string studentID, decimal payment)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.MakePayment(studentID, payment));
        }
Beispiel #3
0
        public List <Student> GetMatchingStudents(string id = null, string parttialLastName = null)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.RetrieveMatchingStudents(id, parttialLastName));
        }
Beispiel #4
0
        //Payment
        #region Payment
        public List <Student> PaymentGetStudents(string searchCriteria, int searchBy)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.PaymentGetStudents(searchCriteria, searchBy));
        }
Beispiel #5
0
        //Check In
        #region Check In
        public Student GetStudentByResourceId(int resourceId)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.RetrieveStudentByResourceId(resourceId));
        }
Beispiel #6
0
        public int GetLastID()
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.GetLastID());
        }
Beispiel #7
0
        public bool Remove(int studentId)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.Delete(studentId));
        }
Beispiel #8
0
        public bool Edit(Student student)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.Update(student));
        }