Hangfire and ASP.NET MVC controlling the controller?


I need to have an action/method in my controller to be activate every minute. But I cant seem to find any info on how to do this. Im unsure where to put the RecurringJob and how to attach my actionresult to it.

I have been trying a bit and I currently have

RecurringJob.AddOrUpdate(() => Controllers.MainController.SaveMailSubmit(pOPEmail), Cron.Minutely);

In the Startup.cs but here I get the CS0120 error: An objrect reference is required for the non-static field, method or property. And I have no clue on how to fix this.

Any help would be appreciated and thanks in advance!