Example #1
0
 /**
  * Remove the specified RoomTypes from storage.
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $roomTypes = $this->roomTypesRepository->find($id);
     if (empty($roomTypes)) {
         Flash::error('RoomTypes not found');
         return redirect(route('admin.roomTypes.index'));
     }
     $this->roomTypesRepository->delete($id);
     Flash::success('RoomTypes deleted successfully.');
     return redirect(route('admin.roomTypes.index'));
 }
Example #2
0
 /**
  * Remove the specified RoomTypes from storage.
  * DELETE /roomTypes/{id}
  *
  * @param  int $id
  *
  * @return Response
  */
 public function destroy($id)
 {
     $this->roomTypesRepository->apiDeleteOrFail($id);
     return $this->sendResponse($id, "RoomTypes deleted successfully");
 }