public IList <DanhMucData> GetDanhMucByCriteria(System.String whereCondition) { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.GetDanhMucs(whereCondition)); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucByCriteria]", ex.Message); return(null); } }
public DanhMucData GetDanhMucByID(System.String maLoaiDanhMuc) { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.GetDanhMucByID(maLoaiDanhMuc)); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucByID]", ex.Message); return(null); } }
public IList <DanhMucData> GetDanhMucs() { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.GetDanhMucs()); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucs]", ex.Message); return(null); } }
public System.Int32 RemoveDanhMuc(DanhMucData data) { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.Remove(data)); } catch (Exception ex) { ErrorLog.WebLog("[RemoveDanhMuc]", ex.Message); } return(-1); }
public IList <DanhMucData> GetDanhMucPaging(System.String whereCondition, System.Int32 pageSize, System.Int32 currentPage, System.String sortByColumns) { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.GetDanhMucPaging(whereCondition, pageSize, currentPage, sortByColumns)); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucPaging]", ex.Message); return(new List <DanhMucData>()); } }
public System.Int32 GetDanhMucCount(System.String whereCondition) { try { var domain = new DanhMucDomainObject(ConnectionString); return(domain.GetDanhMucCount(whereCondition)); } catch (Exception ex) { ErrorLog.WebLog("[GetDanhMucCount]", ex.Message); } return(-1); }