public async Task<IHttpActionResult> PutCharacterType(int id, CharacterType characterType)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != characterType.Id)
            {
                return BadRequest();
            }

            _db.Entry(characterType).State = EntityState.Modified;

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public async Task<IHttpActionResult> PostCharacterType(CharacterType characterType)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            _db.CharacterTypes.Add(characterType);
            await _db.SaveChangesAsync();

            return CreatedAtRoute("DefaultApi", new { id = characterType.Id }, characterType);
        }