public IList<DanhMucItemData> GetDanhMucItems() { try { var domain = new DanhMucItemDomainObject(ConnectionString); return domain.GetDanhMucItems(); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucItems]", ex.Message); return null; } }
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; } }
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; } }