Exemplo n.º 1
0
        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");
                }
            }
        }
Exemplo n.º 2
0
 public StudentBLL()
 {
     aStudentGateWay = new StudentGateWay();
 }
Exemplo n.º 3
0
 public StudentBll()
 {
     AStudentGateWay = new StudentGateWay();
 }