/**
  * Remove the specified BillDetail from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $billDetail = $this->billDetailRepository->find($id);
     if (empty($billDetail)) {
         Flash::error('BillDetail not found');
         return redirect(route('billDetails.index'));
     }
     $this->billDetailRepository->delete($id);
     Flash::success('BillDetail deleted successfully.');
     return redirect(route('billDetails.index'));
 }
 /**
  * Remove the specified BillDetail from storage.
  * DELETE /billDetails/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->billDetailRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "BillDetail deleted successfully");
 }