public void Run(HttpRequest httpRequest)
 {
     try
     {
         HttpRequest = httpRequest;
         BusinessProcessor.Validate();
         BusinessProcessor.PreRun();
         BusinessProcessor.Run();
         BusinessProcessor.PostRun();
     }
     catch (System.Exception)
     {
         throw;
     }
 }
        public async Task <IActionResult> RunAsync(HttpRequest httpRequest)
        {
            try
            {
                HttpRequest = httpRequest;
                await Task.Run(() => BusinessProcessor.Validate());

                await Task.Run(() => BusinessProcessor.PreRun());

                await Task.Run(() => BusinessProcessor.Run());

                await Task.Run(() => BusinessProcessor.PostRun());

                return(Action);
            }
            catch (System.Exception)
            {
                throw;
            }
        }