diff --git a/OliverBooth/Services/BlogService.cs b/OliverBooth/Services/BlogService.cs index c15dd83..f1c9e9e 100644 --- a/OliverBooth/Services/BlogService.cs +++ b/OliverBooth/Services/BlogService.cs @@ -74,7 +74,7 @@ public sealed class BlogService /// /// if the author is found; otherwise, . /// is . - public bool TryGetAuthor(int id, [NotNullWhen(true)] out Author? author) + public bool TryGetAuthor(Guid id, [NotNullWhen(true)] out Author? author) { using BlogContext context = _dbContextFactory.CreateDbContext(); author = context.Authors.FirstOrDefault(a => a.Id == id); @@ -136,7 +136,7 @@ public sealed class BlogService /// otherwise, . /// /// if the post is found; otherwise, . - public bool TryGetBlogPost(int postId, [NotNullWhen(true)] out BlogPost? post) + public bool TryGetBlogPost(Guid postId, [NotNullWhen(true)] out BlogPost? post) { using BlogContext context = _dbContextFactory.CreateDbContext(); post = context.BlogPosts.FirstOrDefault(p => p.Id == postId);