How to get ControllerContext to build PDF using Rotativa in BackgroundJob with Hangfire
I have to send mails in my background application, for this I use Hangfire, but I have to attach a document to each mail with its recipient, the information of the document to be attached is in a table that I convert with rotativa.