protected void btnDoLoan_Click(object sender, EventArgs e) { code = Convert.ToString(Session["bookview"]); textCodeBook.Text = code; nameCustomer = Convert.ToString(Session["idCustomer"]); textIdCustomer.Text = nameCustomer; cnt_loan.insertLoan(textDateLoan.Text, textDateLimit.Text, textIdCustomer.Text, textCodeBook.Text); updateBook(); Session.Add("idCustomer", nameCustomer); Response.Redirect("frm_PrestamoCliente.aspx"); }
public int insertLoan(string dateLoan, string dateLimit, string identificationCard, string code) { CntClsLoan cnt_loan = new CntClsLoan(); return(cnt_loan.insertLoan(dateLoan, dateLimit, identificationCard, code)); }