public IHttpActionResult PutTripPicture(int id, TripPicture tripPicture)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

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

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

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

            return StatusCode(HttpStatusCode.NoContent);
        }
        public IHttpActionResult PostTripPicture(TripPicture tripPicture)
        {
            if (!ModelState.IsValid)
            {
                return BadRequest(ModelState);
            }

            db.TripPictures.Add(tripPicture);
            db.SaveChanges();

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