示例#1
0
        public List <Student> getStudentData()
        {
            DataAccesLayer.DALServices dServices = new DataAccesLayer.DALServices();

            var someStudents = dServices.GetStudentsWithTheirCourses();

            return(someStudents);
        }
示例#2
0
        public bool AddStudent(Student student)
        {
            //validate student

            try
            {
                DataAccesLayer.DALServices dServices = new DataAccesLayer.DALServices();
                dServices.AddStudent(student);
                return(true);
            }
            catch (Exception ex)
            {
                //log error
                return(false);
            }
        }