BookServiceAsyncSample.Controllers.BookChaptersController.GetBookChapterByIdAsync C# (CSharp) 메소드

GetBookChapterByIdAsync() 개인적인 메소드

private GetBookChapterByIdAsync ( System.Guid id ) : Task
id System.Guid
리턴 Task
        public async Task<IActionResult> GetBookChapterByIdAsync(Guid id)
        {
            BookChapter chapter = await _repository.FindAsync(id);
            if (chapter == null)
            {
                return NotFound();
            }
            else
            {
                return new ObjectResult(chapter);
            }
        }