Exemple #1
0
        public void AssignRemoteToStudent(int StudentID, string RemoteNumber, int SubjectID, int ClassroomID)
        {
            StudentModel ModelObj1 = new StudentModel();

            SqlParameter[] SParam = new SqlParameter[4];

            SParam[0]       = new SqlParameter("@StudentID", SqlDbType.Int);
            SParam[0].Value = StudentID;
            SParam[1]       = new SqlParameter("@RemoteNumber", SqlDbType.VarChar);
            SParam[1].Value = RemoteNumber;
            SParam[2]       = new SqlParameter("@SubjectID", SqlDbType.Int);
            SParam[2].Value = SubjectID;
            SParam[3]       = new SqlParameter("@ClassRoomID", SqlDbType.Int);
            SParam[3].Value = ClassroomID;

            try
            {
                ModelObj1.AssignRemoteToStudent(SParam);
            }
            catch (Exception ex)
            {
            }
        }