Beispiel #1
0
 /// <summary>
 /// Gets an IList with page of instances of BuoiGiangDay.
 /// </summary>
 /// <param name="pageNumber">The page number.</param>
 /// <param name="pageSize">Size of the page.</param>
 /// <param name="totalPages">total pages</param>
 public List<BuoiGiangDay> GetPage(int pageNumber, int pageSize,out int totalrow )
 {
     totalrow = 0;
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     IDataReader reader = itemDAL.GetPage(pageNumber, pageSize,out totalrow);
     return BuoiGiangDayDTO.LoadListFromReader(reader);
 }
Beispiel #2
0
 /// <summary>
 /// Gets an instance of BuoiGiangDay.
 /// </summary>
 /// <param name="buoiGiangGuid"> buoiGiangGuid </param>
 public BuoiGiangDay GetBuoiGiangDay(Guid buoiGiangGuid)
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     using (IDataReader reader = itemDAL.GetOne(buoiGiangGuid))
     {
         return BuoiGiangDayDTO.PopulateFromReader(reader);
     }
 }
Beispiel #3
0
 private Guid Update(BuoiGiangDay item)
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     return itemDAL.Update(item) ? item.BuoiGiangGuid : Guid.Empty;
 }
Beispiel #4
0
 private Guid Create(BuoiGiangDay item)
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     item.BuoiGiangGuid = Guid.NewGuid();
     int rowsAffected = itemDAL.Create(item);
     return rowsAffected > 0 ? item.BuoiGiangGuid : Guid.Empty;
 }
Beispiel #5
0
 public bool ShareDocForStudent(Guid buoiguid, Guid monguid)
 {
     BuoiGiangDayDAL itemDAL = new BuoiGiangDayDAL();
     return itemDAL.ShareDocForStudent(buoiguid, monguid);
 }
Beispiel #6
0
 public int GetCount()
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     return itemDAL.GetCount();
 }
Beispiel #7
0
 public List<BuoiGiangDay> GetAllByMonGuidAndUser(Guid MonGuida, int UserID)
 {
     BuoiGiangDayDAL itemDAL = new BuoiGiangDayDAL();
     IDataReader reader = itemDAL.GetAllByMonGuidAndUser(MonGuida,UserID);
     return BuoiGiangDayDTO.LoadListFromReader(reader);
 }
Beispiel #8
0
 /// <summary>
 /// Gets an IList with all instances of BuoiGiangDay.
 /// </summary>
 public List<BuoiGiangDay> GetAll()
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     IDataReader reader = itemDAL.GetAll();
     return BuoiGiangDayDTO.LoadListFromReader(reader);
 }
Beispiel #9
0
 /// <summary>
 /// Deletes an instance of BuoiGiangDay. Returns true on success.
 public bool Delete(Guid buoiGiangGuid)
 {
     BuoiGiangDayDAL itemDAL=new BuoiGiangDayDAL();
     return itemDAL.Delete(buoiGiangGuid);
 }