public async Task <IActionResult> Deploy(TagViewModel model) { if (!ModelState.IsValid) { throw new InvalidOperationException("tag not specified or correct"); } return(View(new DeployViewModel(tag: model.Tag, result: await deploymentService.RunDeploymentCommand(model.Tag).ConfigureAwait(false)))); }