/**
  * Update the specified ReserveRoom in storage.
  * PUT/PATCH /reserveRooms/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var ReserveRoom $reserveRoom */
     $reserveRoom = $this->reserveRoomRepository->apiFindOrFail($id);
     $result = $this->reserveRoomRepository->updateRich($input, $id);
     $reserveRoom = $reserveRoom->fresh();
     return $this->sendResponse($reserveRoom->toArray(), "ReserveRoom updated successfully");
 }
 /**
  * Update the specified ReserveRoom in storage.
  *
  * @param  int              $id
  * @param UpdateReserveRoomRequest $request
  *
  * @return Response
  */
 public function update($id, UpdateReserveRoomRequest $request)
 {
     $reserveRoom = $this->reserveRoomRepository->find($id);
     if (empty($reserveRoom)) {
         Flash::error('ReserveRoom not found');
         return redirect(route('reserveRooms.index'));
     }
     $this->reserveRoomRepository->updateRich($request->all(), $id);
     Flash::success('ReserveRoom updated successfully.');
     return redirect(route('reserveRooms.index'));
 }