コード例 #1
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public bool Add(Student student)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.InsertStudent(student));
        }
コード例 #2
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public bool MakePayment(string studentID, decimal payment)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.MakePayment(studentID, payment));
        }
コード例 #3
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public List <Student> GetMatchingStudents(string id = null, string parttialLastName = null)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.RetrieveMatchingStudents(id, parttialLastName));
        }
コード例 #4
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        //Payment
        #region Payment
        public List <Student> PaymentGetStudents(string searchCriteria, int searchBy)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.PaymentGetStudents(searchCriteria, searchBy));
        }
コード例 #5
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        //Check In
        #region Check In
        public Student GetStudentByResourceId(int resourceId)
        {
            StudentRepository studentRepo = new StudentRepository();

            return(studentRepo.RetrieveStudentByResourceId(resourceId));
        }
コード例 #6
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public int GetLastID()
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.GetLastID());
        }
コード例 #7
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public bool Remove(int studentId)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.Delete(studentId));
        }
コード例 #8
0
ファイル: StudentBL.cs プロジェクト: kevinwnb/ABC-Automotive
        public bool Edit(Student student)
        {
            StudentRepository studentRepository = new StudentRepository();

            return(studentRepository.Update(student));
        }