public async Task <IHttpActionResult> PutIndiePlayerProfile(int id, IndiePlayerProfile indiePlayerProfile)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

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

            db.Entry(indiePlayerProfile).State = EntityState.Modified;

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

            return(StatusCode(HttpStatusCode.NoContent));
        }
        public async Task <IHttpActionResult> DeleteIndiePlayerProfile(int id)
        {
            IndiePlayerProfile indiePlayerProfile = await db.IndiePlayerProfiles.FindAsync(id);

            if (indiePlayerProfile == null)
            {
                return(NotFound());
            }

            db.IndiePlayerProfiles.Remove(indiePlayerProfile);
            await db.SaveChangesAsync();

            return(Ok(indiePlayerProfile));
        }