public GLAccountDTO ValidateGLAccountAndEntityType(int accountTypeID, int entityTypeID, int?glAccountID) { GLAccountList glAccount = GLAccountList.ValidateGLAccountAndEntityType(accountTypeID, entityTypeID, glAccountID); if (glAccount.Count > 0) { return(glAccount[0].CurrentDTO); } return(null); }
public GLAccountDTO ValidateGLAccount(string accountCode, int?glAccountID) { GLAccountList glAccount = GLAccountList.ValidateAccountCode(accountCode.Trim(), glAccountID); if (glAccount.Count > 0) { return(glAccount[0].CurrentDTO); } return(null); }