public ActionResult <string> GetAllGameIDsAndStates() { Dictionary <int, int> allIDsandStates = _services.GetAllGameIDsAndStates(); string json = Newtonsoft.Json.JsonConvert.SerializeObject(allIDsandStates); return(json); }