I am trying to call the SweetAlert2 method.
Two tasks (for success and error) are created in one razor file, they are public and I fail to call them from another razor file. On the razor file, I have created 4 functions/tasks - 2 of them are with SweetAlert2 and the other two are with Toastr. I manage to call the ones with Toastr but not the ones with SweetAlert. Any idea how I can do that?