Esempio n. 1
0
        public Loan GetLoandata(string bid)
        {
            LoanDataAccess lDL    = new LoanDataAccess();
            SqlDataReader  sdr    = lDL.ReadLoanDetail(bid);
            Loan           lModel = new Loan();

            if (sdr.Read())
            {
                lModel.business_id  = Convert.ToInt32(sdr["business_id"]);
                lModel.applicant_id = Convert.ToInt32(sdr["applicant_id"]);
            }
            LoanDataAccess.sqlcon.Close();
            return(lModel);
        }