/**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(CategoryRequest $request, $id)
 {
     $input = $request->all();
     $productCategory = ProductCategory::findOrFail($id);
     $productCategory->update($input);
     return redirect("ProductCategory");
 }
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     $Category = ProductCategory::findOrFail($id);
     return response()->json($Category);
 }