public async Task <ActionResult <GuessFromAndroid> > PostGuessFromAndroid(GuessFromAndroid guessFromAndroid)
        {
            if (guessFromAndroid != null)
            {
                _context.AllGuesses.Add(guessFromAndroid);
                await _context.SaveChangesAsync();

                Debug.WriteLine("Good POST request received!");

                return(CreatedAtAction("GetGuessFromAndroid", new
                {
                    id = guessFromAndroid.ID,
                    userId = guessFromAndroid.UserId,
                    gameId = guessFromAndroid.GameId,
                    selTeam = guessFromAndroid.SelTeam,
                    byPts = guessFromAndroid.ByPts
                }, guessFromAndroid));
            }

            else
            {
                Debug.WriteLine("Bad POST request received!");
                return(BadRequest());
            }

            /*
             *
             * return CreatedAtAction("GetGuessFromAndroid", new { id = guessFromAndroid.ID,
             *                                                   userId = guessFromAndroid.UserId,
             *                                                   gameId = guessFromAndroid.GameId,
             *                                                   selTeam = guessFromAndroid.SelTeam,
             *                                                   byPts = guessFromAndroid.ByPts}, guessFromAndroid); */
        }
        public async Task <IActionResult> PutGuessFromAndroid(int id, GuessFromAndroid guessFromAndroid)
        {
            if (id != guessFromAndroid.ID)
            {
                return(BadRequest());
            }

            _context.Entry(guessFromAndroid).State = EntityState.Modified;

            try
            {
                await _context.SaveChangesAsync();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!GuessFromAndroidExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }