public async Task <IActionResult> GetUserStory(int projectId, int id) { var userStory = await _projectManagerRepository.GetUserStoryByIdAsync(projectId, id); if (userStory == null) { _logger.LogInformation($"Could not find user story with id: {id}"); return(NotFound()); } var userStoryDto = Mapper.Map <UserStoryDto>(userStory); return(Ok(userStoryDto)); }