/**
  * Update the specified LocationProduct in storage.
  * PUT/PATCH /locationProducts/{id}
  *
  * @param  int              $id
  * @param Request $request
  *
  * @return Response
  */
 public function update($id, Request $request)
 {
     $input = $request->all();
     /** @var LocationProduct $locationProduct */
     $locationProduct = $this->locationProductRepository->apiFindOrFail($id);
     $result = $this->locationProductRepository->updateRich($input, $id);
     $locationProduct = $locationProduct->fresh();
     return $this->sendResponse($locationProduct->toArray(), "LocationProduct updated successfully");
 }