BooksServiceSample.Models.SampleBookChaptersRepository.FindAsync C# (CSharp) Method

FindAsync() public method

public FindAsync ( System.Guid id ) : Task
id System.Guid
return Task
        public Task<BookChapter> FindAsync(Guid id)
        {
            BookChapter chapter;
            _chapters.TryGetValue(id, out chapter);
            return Task.FromResult(chapter);
        }