コード例 #1
0
        // method which sends applicant details to DAL
        private bool ApplicantDetails(Applicant la)
        {
            bool result = false;

            try
            {
                DALApplicantManager DALMngr = new DALApplicantManager();
                la.CreditRating = CreditRating(la);

                result = DALMngr.PassApplicantDetailsToDB(la);

            }
            catch (Exception ex)
            {
                throw;
            }
            return result;
        }
コード例 #2
0
        // send updated applicant details to data access layer
        private bool UpdatedApplicantDetails(Applicant applicant)
        {
            bool result = false;
            try
            {
                applicant.CreditRating = CreditRating(applicant);
                DALApplicantManager DALMngr = new DALApplicantManager();
                result = DALMngr.PassUpdatedApplicantDetailsToDB(applicant);
            }
            catch (Exception ex)
            {
                throw;
            }

            return result;
        }
コード例 #3
0
        // method for returning list of loan applicants
        private List<Applicant> GetListOfApplicants()
        {
            List<Applicant> ApplicantList = new List<Applicant>();

            try
            {
                DALApplicantManager DALMngr = new DALApplicantManager();
                ApplicantList = DALMngr.CallGetAppList();

            }
            catch (Exception ex)
            {
                throw;
            }
            return ApplicantList;
        }