public void getDepartmentData()
        {
            //setting the user userinputs to a object of student class which is in the shared library
            Department objDepartment1 = new Department();

            objDepartment1.DepartmentName = txtDeptName.Text;
            objDepartment1.DepartmenCode  = txtDeptCode.Text;

            //passing above values as a object to the business layer.
            systemManager objsystemManager = new systemManager();

            objsystemManager.insertDepartments(objDepartment1);
        }