Beispiel #1
0
        /// <summary>
        /// LookupStates
        /// </summary>
        /// <param name="loanType"></param>
        /// <param name="userAccountId"></param>
        /// <returns></returns>
        public static LookupCollection LookupStates(LoanTransactionType loanType, Int32 userAccountId)
        {
            /// TODO:   THIS IS ONLY TEMPORARY FOR CLIENT TO GET TEST DOCUMENT THIS NEEDS TO BE REFACTORED CORRECTLY
            ///         THESE VALUES SHOULD BE STORED IN DATABASE !!!!!
            ///         ADDED STATES WA, UT, OR
            String[]         purchaseStateList = { "CA", "CO", "FL", "HI", "ID", "NM", "TX", "WA", "UT", "OR" };
            LookupCollection purchaseStates    = new LookupCollection();

            purchaseStates.AddRange(LookupServiceFacade.LookupStates(userAccountId).Where(l => purchaseStateList.Contains(l.Name)).ToArray());

            return(loanType == LoanTransactionType.Purchase ? purchaseStates : LookupServiceFacade.LookupStates(userAccountId));
        }