コード例 #1
0
ファイル: RestController.cs プロジェクト: fleetwoodn/sacs
        public async Task <ActionResult> InstaFlightsSearch(InstaFlightsPostRQ requestModel)
        {
            RestClient    restClient    = RestClientFactory.Create();
            IActivity     activity      = new InstaFlightsActivity(restClient, requestModel);
            Workflow      workflow      = new Workflow(activity);
            SharedContext sharedContext = await workflow.RunAsync();

            InstaFlightsPostVM viewModel = ViewModelFactory.CreateInstaFlightsVM(sharedContext);

            return(this.View(viewModel));
        }