private async Task <int> AddCommentScore(int commentId, string username, LikeData.Score score) { CommentScores.Add(new CommentScore() { CommentId = commentId, Username = username, Score = score }); return(await SaveChangesAsync()); }
private async Task <int> AddTopicScore(int topicId, string username, LikeData.Score score) { TopicScores.Add(new TopicScore() { TopicId = topicId, Username = username, Score = score }); return(await SaveChangesAsync()); }