Ejemplo n.º 1
0
 /**
  * Remove the specified PointPrice from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $pointPrice = $this->pointPriceRepository->find($id);
     if (empty($pointPrice)) {
         Flash::error('PointPrice not found');
         return redirect(route('pointPrices.index'));
     }
     $this->pointPriceRepository->delete($id);
     Flash::success('PointPrice deleted successfully.');
     return redirect(route('pointPrices.index'));
 }
 /**
  * Remove the specified PointPrice from storage.
  * DELETE /pointPrices/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->pointPriceRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "PointPrice deleted successfully");
 }