public async Task <IActionResult> PutUser(long id, User user)
        {
            if (id != user.UserId)
            {
                return(BadRequest());
            }

            _dbController.ChangeUserState(user, EntityState.Modified);
            try
            {
                _dbController.SaveDB();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!UserExists(id))
                {
                    return(NotFound());
                }
                else
                {
                    throw;
                }
            }

            return(NoContent());
        }