public string Save(Student aStudent) { if (aStudent.RegNo == "" || aStudent.StudentName == "" || aStudent.StudentEmail == "") { string info = ""; if (aStudent.RegNo == "") { info += "Student RegNo Missing\n"; } if (aStudent.StudentName == "") { info += "Student Name Missing\n"; } if (aStudent.StudentEmail == "") { info += "Student Email Missing\n"; } return(info); } else { aStudentGateWay = new StudentGateWay(); if (aStudentGateWay.SaveData(aStudent)) { return("Insert Data Succed"); } else { return("Not Insert Succed"); } } }
public StudentBLL() { aStudentGateWay = new StudentGateWay(); }
public StudentBll() { AStudentGateWay = new StudentGateWay(); }