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))); }