コード例 #1
0
 public ActionResult Edit(string id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     MaravillasSOAPWS.ReservaHotel reservahotel = proxy.ObtenerReservaHotel(id);
     if (reservahotel == null)
     {
         return(HttpNotFound());
     }
     ViewData["Message"]  = "Detalle de la reserva hotel";
     ViewBag.ReservaHotel = reservahotel;
     return(View(reservahotel));
 }
コード例 #2
0
 public ActionResult Delete(string id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     ViewData["Message"] = "Detalle de reserva hotel";
     ViewBag.Titulo1     = "Codigo Reserva Hotel";
     ViewBag.Titulo2     = "Nombre Hotel";
     ViewBag.Titulo3     = "Numero Dias";
     ViewBag.Titulo4     = "Cantidad Personas";
     ViewBag.Titulo5     = "Numero Habitaciones";
     ViewBag.Titulo6     = "Monto Total";
     ViewBag.Titulo7     = "Fecha Ingreso";
     MaravillasSOAPWS.ReservaHotel reservahotel = proxy.ObtenerReservaHotel(id);
     if (reservahotel == null)
     {
         return(HttpNotFound());
     }
     return(View(reservahotel));
 }