Exemple #1
0
        public PharmaBusinessObjects.Common.AccountLedgerType GetAccountLedgerTypeByName(string name)
        {
            var accountLedgerTypes = new CommonDao().GetAccountLedgerTypes() ?? new List <PharmaBusinessObjects.Common.AccountLedgerType>();;

            PharmaBusinessObjects.Common.AccountLedgerType accountLedger = accountLedgerTypes.FirstOrDefault(p => p.AccountLedgerTypeName.ToLower() == name.ToLower());
            return(accountLedger);
        }