public void CopyExam(int fromid, int toid) { try { using (aspccEntities db = new aspccEntities()) { db.ExamCopyQuestion(fromid, toid); } } catch (Exception ex) { com.Loginsert("DalgetStudentexamById", "CopyExam", ex.StackTrace, ex.Message); } }