From eb2edcb3f6481a2b8611443e827d23de6ecbe703 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Fri, 11 Aug 2023 14:26:38 +0100 Subject: [PATCH] fix: amend 0ecef1a547b841ed761502d561dfc015b72d5aaf Forgot these two --- OliverBooth/Services/BlogService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);