}//ReservationClient public ActionResult ReservationInformation(String nombreCompleto, String correo_, int numeroReserva, float montoR) { Models.MakeReservation_Result makeReservation = new Models.MakeReservation_Result(); makeReservation.nombre = nombreCompleto; makeReservation.correo = correo_; makeReservation.numeroReserva = numeroReserva; makeReservation.monto = montoR; correo(nombreCompleto, correo_, numeroReserva, montoR); return View(makeReservation); }//ReservationInformation
}//checkAvailability public JsonResult makeReservation(String identificacion, String nombre, String apellidos, String correo, String tarjeta, String fechaV, String codigoS, int numero, String fechaLlegada, String fechaSalida, float monto) { using (var mo = new Models.Hotel_Amazonian_WillowEntities()) { DateTime fechaLlegada1 = DateTime.Parse(fechaLlegada); DateTime fechaSalida1 = DateTime.Parse(fechaSalida); ObjectResult<Models.MakeReservation_Result> result = mo.MakeReservation(identificacion, nombre, apellidos, correo, tarjeta, fechaV, codigoS,numero, fechaLlegada1, fechaSalida1, monto); Models.MakeReservation_Result makeReservation1 = new Models.MakeReservation_Result(); foreach (Models.MakeReservation_Result makeReservation in result) makeReservation1 = makeReservation; Thread.Sleep(3000); return Json(makeReservation1, JsonRequestBehavior.AllowGet); } }//makeReservation