public List<string> LayHinhAnh()
 {
     int count = 0;
     List<string> kq = new List<string>();
     WebPortal.TaiNguyen taiNguyen = new TaiNguyen();
     List<WebPortal.Model.TaiNguyen> listAll = taiNguyen.All();
     List<WebPortal.Model.TaiNguyen> listTN = taiNguyen.Paging(0, listAll.Count, listAll);
     foreach (WebPortal.Model.TaiNguyen tn in listTN)
     {
         if (KiemTraFileHinh(tn.Path))
         {
             kq.Add(tn.Path);
             count++;
         }
         if (count > 16)
             break;
     }
     return kq;
 }
Exemple #2
0
 public Model.TaiNguyen LayTaiNguyenTheoID(int id)
 {
     WebPortal.TaiNguyen taiNguyen = new TaiNguyen();
     return taiNguyen.Single(id);
 }