public void AddQuestion(QuestionAnswer question) { var roomName = HttpContext.Session.GetString("roomName"); var playerNum = HttpContext.Session.GetInt32("player"); question.player = playerNum.Value; storageService.AddQuestion(roomName, question); }
public void AddQuestion(QuestionAnswer question) { var roomName = HttpContext.Session.GetString("roomName"); var playerNum = HttpContext.Session.GetInt32("player"); question.player = playerNum.Value; storageService.AddQuestion(roomName, question); }