public IHttpActionResult PutAdvertiser(int id, Advertiser advertiser)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            if (id != advertiser.AdvertiserId)
            {
                return BadRequest();
            }

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException)
            {
                if (!AdvertiserExists(id))
                {
                    return NotFound();
                }
                else
                {
                    throw;
                }
            }

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostAdvertiser(Advertiser advertiser)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Advertisers.Add(advertiser);
            db.SaveChanges();

            return CreatedAtRoute("DefaultApi", new { id = advertiser.AdvertiserId }, advertiser);
        }