public async Task <GetIssueOutput> GetIssue(GetIssueInput input) { AuthorizationService.CheckLogin(); _validationService.Validate(input); var issue = await _issueRepository.GetByIdAsync(input.Id); return(new GetIssueOutput { Issue = ObjectMapper.Mapper.Map <IssueDto>(issue), //Comments = GetIssueCommentDtos(issue.Id) }); }
public GetIssueOutput GetIssue(GetIssueInput input) { AuthorizationService.CheckLogin(); _validationService.Validate(input); var issue = _issueRepository.Get(input.Id); return(new GetIssueOutput { Issue = _objectMapper.Map <IssueDto>(issue), Comments = GetIssueCommentDtos(issue.Id) }); }