public async Task <IActionResult> PutGetWallet([FromRoute] int id, [FromBody] GetWallet getWallet)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            if (id != getWallet.Userid)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostGetWallet([FromBody] GetWallet getWallet)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.GetWallet.Add(getWallet);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetGetWallet", new { id = getWallet.Userid }, getWallet));
        }