Пример #1
0
 public IList <DanhMucItemData> GetDanhMucItems()
 {
     try
     {
         var domain = new DanhMucItemDomainObject(ConnectionString);
         return(domain.GetDanhMucItems());
     }
     catch (Exception ex)
     {
         ErrorLog.WebLog("[GetDanhMucItems]", ex.Message);
         return(null);
     }
 }
Пример #2
0
 public IList <DanhMucItemData> GetDanhMucItemBySizeCriteria(System.Int32 size, System.String whereCondition)
 {
     try
     {
         var domain = new DanhMucItemDomainObject(ConnectionString);
         return(domain.GetDanhMucItems(size, whereCondition));
     }
     catch (Exception ex)
     {
         ErrorLog.WebLog("[GetDanhMucItemBySizeCriteria]", ex.Message);
         return(null);
     }
 }
Пример #3
0
 public IList <DanhMucItemData> GetDanhMucItemsByDanhMuc(string maLoaiDanhMuc)
 {
     try
     {
         var domain = new DanhMucItemDomainObject(ConnectionString);
         return(domain.GetDanhMucItems(string.Format(" AND di.MaLoaiDanhMuc = '{0}'", maLoaiDanhMuc)));
     }
     catch (Exception ex)
     {
         ErrorLog.WebLog("[GetDanhMucItemsByDanhMuc]", ex.Message);
         return(null);
     }
 }