Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "TipoComprobanteId,ComprobantePagoId")] TipoComprobante tipoComprobante)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tipoComprobante).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.ComprobantePagoId = new SelectList(db.ComprobantesPago, "ComprobantePagoId", "ComprobantePagoId", tipoComprobante.ComprobantePagoId);
     return(View(tipoComprobante));
 }
 public ActionResult Edit([Bind(Include = "CategoriaHospedajeId,HospedajeId")] CategoriaHospedaje categoriaHospedaje)
 {
     if (ModelState.IsValid)
     {
         db.Entry(categoriaHospedaje).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CategoriaHospedajeId = new SelectList(db.ServiciosTuristicos, "ServicioTuristicoId", "Fecha", categoriaHospedaje.CategoriaHospedajeId);
     return(View(categoriaHospedaje));
 }
 public ActionResult Edit([Bind(Include = "TipoHospedajeId,HospedajeId")] TipoHospedaje tipoHospedaje)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tipoHospedaje).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     ViewBag.TipoHospedajeId = new SelectList(db.ServiciosTuristicos, "ServicioTuristicoId", "Fecha", tipoHospedaje.TipoHospedajeId);
     return View(tipoHospedaje);
 }