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>()); } }
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); }
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); } }
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); } }
public IList <SysAccountData> GetSysAccounts() { try { var domain = new SysAccountDomainObject(ConnectionString); return(domain.GetSysAccounts()); } catch (Exception ex) { ErrorLog.Log("[GetSysAccounts]", ex.Message); return(null); } }
public System.Int32 RemoveSysAccount(SysAccountData data) { try { var domain = new SysAccountDomainObject(ConnectionString); return(domain.Remove(data)); } catch (Exception ex) { ErrorLog.Log("[RemoveSysAccount]", ex.Message); } return(-1); }