public void CreateStudent(Student student) { MPPStudent mapper = new MPPStudent(); try { mapper.CreateStudent(student); } catch (Exception ex) { Console.WriteLine(ex.Message); throw ex; } }
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); } }
public Student SearchStudentByUser(User user) { MPPStudent mapper = new MPPStudent(); return(mapper.SearchStudentByUser(user)); }