public async Task <IActionResult> Index([FromRoute] string commandName) { var res = await _coreCommandsService .GetAllCommandsAsync(); var found = res.SingleOrDefault(x => x.Name == commandName); if (found == null) { return(NotFound()); } return(View(await CoreCommandVM.fromDependencyAsync(found))); }
private static string getJiraTask(CoreCommandVM command) { return ($"- Replace {command.Name} / cfield:\"Assigned Team:@inherit\" / description:\"h1. {command.Name}\n# Confirm this command fits the Req/Resp model.\n ## If it *does NOT*, close this task.\n ## If it *does*, continue to move this out of Core Consumers and into the SSC BFF.\""); }