Example #1
0
        public async Task <IActionResult> CognitoEditCash([FromBody] User userInfo)
        {
            UserDynamo UserUpdate = new UserDynamo
            {
                Cash  = userInfo.Cash,
                Email = ClaimsHelper.GetValue(HttpContext)
            };
            await _DBDynamo.Update(UserUpdate);

            return(Ok(UserUpdate));
        }
        public async Task <IActionResult> Open([FromQuery] string Id)
        {
            NewRoulette newRoulette = new NewRoulette
            {
                Id     = Id,
                Status = true,
                Bets   = new List <RoulettePlayer>()
            };
            await _DBDynamo.Update(newRoulette);

            return(Ok(newRoulette));
        }