예제 #1
0
        public async Task <IActionResult> GetTutorial([FromRoute] Guid id)
        {
            var tutorial = await _tutorialService.GetTutorialAsync(id);

            if (tutorial != null)
            {
                return(Ok(_mapper.Map <TutorialResponse>(tutorial)));
            }
            return(NotFound());
        }