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());
 }
 public async Task <TopicScore> GetTopicScore(int topicId, string username)
 {
     return(await TopicScores.FirstOrDefaultAsync(ts => ts.TopicId == topicId && ts.Username == username));
 }
 private async Task <int> DeleteTopicScore(int topicId, string username)
 {
     TopicScores.Remove(TopicScores.First(ts => ts.TopicId == topicId && ts.Username == username));
     return(await SaveChangesAsync());
 }