I am using ngx-bootstrap modal, but I want to use something like this

```
confirmDialog(message: string, note: string, onOk, onCancel) {
   // modal open
   // on click onOk button some action perform
   // on click onCancel button some action perform
}

```

So that I can use this method wherever I want to perform both action. Is this possible?