public IHttpActionResult PutSpeaker(int id, Speaker speaker)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostSpeaker(Speaker speaker)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.Speakers.Add(speaker);
            db.SaveChanges();

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