From 0cf2a3c99141f878168271e53999cdacac95f3c4 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 29 Mar 2021 13:03:10 +0300 Subject: Fixed warnings for commented code and async cloudinary method --- src/Data/DevHive.Data/Repositories/PostRepository.cs | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/Data/DevHive.Data/Repositories/PostRepository.cs') diff --git a/src/Data/DevHive.Data/Repositories/PostRepository.cs b/src/Data/DevHive.Data/Repositories/PostRepository.cs index 0a88cf2..b5228c2 100644 --- a/src/Data/DevHive.Data/Repositories/PostRepository.cs +++ b/src/Data/DevHive.Data/Repositories/PostRepository.cs @@ -60,7 +60,6 @@ namespace DevHive.Data.Repositories public override async Task EditAsync(Guid id, Post newEntity) { Post post = await this.GetByIdAsync(id); - // var ratingId = post.Rating.Id; this._context .Entry(post) @@ -76,8 +75,6 @@ namespace DevHive.Data.Repositories foreach (var comment in newEntity.Comments) post.Comments.Add(comment); - // post.Rating.Id = ratingId; - this._context.Entry(post).State = EntityState.Modified; return await this.SaveChangesAsync(); -- cgit v1.2.3