Ejemplo n.º 1
0
        public void CreateStudent(Student student)
        {
            MPPStudent mapper = new MPPStudent();

            try
            {
                mapper.CreateStudent(student);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                throw ex;
            }
        }
Ejemplo n.º 2
0
        public bool LinkStudentWithUser(Student student, User user)
        {
            MPPStudent mapper = new MPPStudent();

            try
            {
                mapper.LinkStudentWithUser(student, user);
                return(true);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                return(false);
            }
        }
Ejemplo n.º 3
0
        public Student SearchStudentByUser(User user)
        {
            MPPStudent mapper = new MPPStudent();

            return(mapper.SearchStudentByUser(user));
        }