示例#1
0
 public int ExamInsertUpdate(clsExam objExam)
 {
     try
     {
         using (aspccEntities db = new aspccEntities())
         {
             var result = db.ExamInsertUpdate(objExam.Id, objExam.CoruserId, objExam.Name, objExam.noofQestion, objExam.Isactive);
             return(1);
         }
     }
     catch (Exception ex)
     {
         com.Loginsert("DalExamInsertUpdate", "ExamInsertUpdate", ex.StackTrace, ex.Message);
         return(0);
     }
 }