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