示例#1
0
 public static DataTable TruncateStudents()
 {
     try
     {
         DataKernal.Students objStudents = new DataKernal.Students();
         return(objStudents.StudentsTruncate().Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#2
0
 public static DataTable DeleteStudents(int intClassID)
 {
     try
     {
         DataKernal.Students objStudents = new DataKernal.Students();
         return(objStudents.DeleteStudents(intClassID).Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#3
0
 public static DataTable GetAllStudents()
 {
     try
     {
         DataKernal.Students objStudents = new DataKernal.Students();
         return(objStudents.SelectStudents().Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }
示例#4
0
 public static DataTable InsertUpdateStudents(BusinessEntities.Students objStudents)
 {
     try
     {
         DataKernal.Students objDStudents = new DataKernal.Students();
         return(objDStudents.InsertUpdateStudents(objStudents.StudentID, objStudents.StudentName, objStudents.FatherName, objStudents.Gender, objStudents.CNIC, objStudents.DOB, objStudents.Email, objStudents.ContactNo, objStudents.Address, objStudents.Image, objStudents.Disability, objStudents.Discounted, objStudents.IsEnabled, objStudents.DateCreated, objStudents.Remarks, objStudents.UserID).Tables[0]);
     }
     catch (System.Exception ex)
     {
         return(null);
     }
 }