Ejemplo n.º 1
0
 public System.Int32 AddSysAccount(SysAccountData data)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.Add(data);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[AddSysAccount]", ex.Message);
     }
     return -1;
 }
Ejemplo n.º 2
0
 public IList<SysAccountData> GetSysAccounts()
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.GetSysAccounts();
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccounts]", ex.Message);
         return null;
     }
 }
Ejemplo n.º 3
0
 public IList<SysAccountData> GetSysAccountPaging(System.String whereCondition, System.Int32 pageSize, System.Int32 currentPage, System.String sortByColumns)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.GetSysAccountPaging(whereCondition, pageSize, currentPage, sortByColumns);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountPaging]", ex.Message);
         return new List<SysAccountData>();
     }
 }
Ejemplo n.º 4
0
 public System.Int32 GetSysAccountCount(System.String whereCondition)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.GetSysAccountCount(whereCondition);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountCount]", ex.Message);
     }
     return -1;
 }
Ejemplo n.º 5
0
 public IList<SysAccountData> GetSysAccountBySizeCriteria(System.Int32 size, System.String whereCondition)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.GetSysAccounts(size, whereCondition);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountBySizeCriteria]", ex.Message);
         return null;
     }
 }
Ejemplo n.º 6
0
 public SysAccountData GetSysAccountByID(System.Int32 ID)
 {
     try
     {
         var domain = new SysAccountDomainObject(ConnectionString);
         return domain.GetSysAccountByID(ID);
     }
     catch (Exception ex)
     {
         ErrorLog.Log("[GetSysAccountByID]", ex.Message);
         return null;
     }
 }