예제 #1
0
        public ActionResult Edit(Reservation reservation)
        {
            RESTClientClient RESTClientClient = new RESTClientClient();
            RESTRoomClient   RESTRoomClient   = new RESTRoomClient();

            reservation.Client = RESTClientClient.getClientById(reservation.Client.Id);
            reservation.Room   = RESTRoomClient.getRoomById(reservation.Room.Id);

            RESTReservationClient.PutReservation(reservation);

            return(RedirectToAction("index"));
        }
 public ActionResult Edit(int id)
 {
     return(View(RESTRoomClient.getRoomById(id)));
 }