Ejemplo n.º 1
0
        public UsersGuess CreateUserGuess(UsersGuess usersGuess)
        {
            if (usersGuess == null)
            {
                throw new ArgumentNullException(nameof(usersGuess));
            }
            var user = _context.UsersGuess.Add(usersGuess);

            return(user.Entity);
        }
Ejemplo n.º 2
0
        public IActionResult CreateUserGuess([FromBody] UserGuessBinding binding)
        {
            var userGuess = new UsersGuess
            {
                GuessPercentage = binding.GuessPercentage,
                ImageId         = binding.ImageId,
                UserId          = binding.UserId,
                Phase           = binding.Phase
            };

            var newUserGuess = _ZaxHerbivoryTrainerRepository.CreateUserGuess(userGuess);

            _ZaxHerbivoryTrainerRepository.Save();

            return(Ok(newUserGuess));
        }
Ejemplo n.º 3
0
 public void UpdateUserGuess(UsersGuess usersGuess)
 {
 }