public async Task Vote(Question question, string userName, string vote)
        {
			var user = await _context.Users.SingleAsync(u => u.Name == userName);
			var questionVote = question.Votes.SingleOrDefault(v => v.UserId == user.Id);
			
			if (questionVote == null) 
			{
				questionVote = new QuestionVote 
				{
					Id = Guid.NewGuid(),
					User = user,
					Vote = vote					
				};
			}
			
			question.Votes.Add(questionVote);
        }
 private IEnumerable<dynamic> GetResults(Question question) 
 {
     if (question == null)
         return Enumerable.Empty<dynamic>();
     
     return question
         .Votes
         .Select(v => new {
             Name = v.User.Name, 
             Vote = v.Vote
         });
 }
 public void AddQuestion(Question question)
 {
     _context.Questions.Add(question);
 }