예제 #1
0
        protected void btnActualizar_Click(object sender, EventArgs e)
        {
            if (cine != null)
            {
                //cine.idCine = id;
                cine.Nombre    = this.txtNombre.Text;
                cine.Provincia = this.txtProvincia.Text;
                cine.Direccion = this.txtDireccion.Text;
                cine.Aforo     = int.Parse(this.txtAforo.Text);
                cine.nroSalas  = int.Parse(this.txtNroSalas.Text);

                var CDAO = new CineDAO();

                CDAO.Modificar(cine);
                Response.Redirect("frmListarCine.aspx");
            }
        }
예제 #2
0
 public ActionResult Edit(Cine cine)
 {
     cineDao.Modificar(cine);
     return(RedirectToAction("Index"));
 }