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