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

            if (id != upgradeProfile.UpgradeProfileId)
            {
                return(BadRequest());
            }

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

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

            return(NoContent());
        }
        public async Task <IActionResult> PostUpgradeProfile([FromBody] UpgradeProfile upgradeProfile)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            _context.UpgradeProfiles.Add(upgradeProfile);
            await _context.SaveChangesAsync();

            return(CreatedAtAction("GetUpgradeProfile", new { id = upgradeProfile.UpgradeProfileId }, upgradeProfile));
        }