public IHttpActionResult CallModuloRiskManagerLoggedIn(DoSomething.Parameters parameters)
 {
     BackgroundJob.Enqueue(() => CallModuloRiskManagerLoggedIn(parameters));
     return(Ok());
 }
 public IHttpActionResult SimulateError(DoSomething.Parameters parameters)
 {
     throw new Exception();
 }
        public void DoSomething(DoSomething.Parameters parameters)
        {
            var service = GetContainer().Resolve <DoSomething>();

            service.Run(parameters);
        }
 public IHttpActionResult DoSomethingAction(DoSomething.Parameters parameters)
 {
     BackgroundJob.Enqueue(() => DoSomething(parameters));
     return(Ok());
 }