// PUT api/Anunciante/5
        public HttpResponseMessage PutAnunciante(int id, Anunciante anunciante)
        {
            if (!ModelState.IsValid)
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }

            if (id != anunciante.IdAnunciante)
            {
                return Request.CreateResponse(HttpStatusCode.BadRequest);
            }

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

            try
            {
                db.SaveChanges();
            }
            catch (DbUpdateConcurrencyException ex)
            {
                return Request.CreateErrorResponse(HttpStatusCode.NotFound, ex);
            }

            return Request.CreateResponse(HttpStatusCode.OK);
        }
        // POST api/Anunciante
        public HttpResponseMessage PostAnunciante(Anunciante anunciante)
        {
            if (ModelState.IsValid)
            {
                db.Anunciantes.Add(anunciante);
                db.SaveChanges();

                HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.Created, anunciante);
                response.Headers.Location = new Uri(Url.Link("DefaultApi", new { id = anunciante.IdAnunciante }));
                return response;
            }
            else
            {
                return Request.CreateErrorResponse(HttpStatusCode.BadRequest, ModelState);
            }
        }