Пример #1
0
 /// <summary>
 /// Lay tat ca record
 /// </summary>
 /// <returns>List monhoc</returns>
 public List <MonHoc> GetAll()
 {
     try
     {
         List <MonHoc> lstMH = context.GetAll();
         return(lstMH);
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
         return(null);
     }
 }
Пример #2
0
 public DataTable DanhSach()
 {
     return(monHocDAO.GetAll());
 }