Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 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);
     }
 }
Exemplo n.º 3
0
 public IList <DanhMucData> GetDanhMucs()
 {
     try
     {
         var domain = new DanhMucDomainObject(ConnectionString);
         return(domain.GetDanhMucs());
     }
     catch (Exception ex)
     {
         ErrorLog.WebLog("[GetDanhMucs]", ex.Message);
         return(null);
     }
 }
Exemplo n.º 4
0
 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);
 }
Exemplo n.º 5
0
 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>());
     }
 }
Exemplo n.º 6
0
 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);
 }