public void AddFaculty(Faculty paramFaculty) { Faculty_DAL facultyDAL = new Faculty_DAL(); Faculty Faculty = new Faculty(); SubjectFaculty_BLL subjectFacultyBLL = new SubjectFaculty_BLL(); Faculty = LoadFaculty(paramFaculty.ID_Faculty); //Use of transactions // using ( TransactionScope ts = new TransactionScope()) { facultyDAL.AddFaculty(paramFaculty); // foreach (SubjectFaculty subject in subjectList) { //Multiple inserts // subjectFacultyBLL.addFacultySubject(subject); // } // ts.Complete(); // } }
public void AddFaculty(string Code, string Name, DateTime Creation_Date, int University) { Faculty_DAL faculty = new Faculty_DAL(); faculty.AddFaculty(Code, Name, Creation_Date, University); }