public function destroy(OperationType $operationType)
 {
     if (is_integer($operationType)) {
         $operationType = OperationType::find($operationType);
     }
     $operationType->delete();
     Flash::success('OperationType has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($operationType)
 {
     $operationType = OperationType::find($operationType);
     $operationType->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }