public async Task <IActionResult> GetIssue(int?id) { if (id == null) { return(NotFound()); } Issue issue = await _boardService.GetIssueById(new ServiceContext { ContextId = "TEST" }, (int)id); IssueViewModel issueVM = issue.EntityToViewModel(); return(View(issueVM)); }