// POST api/values
        public HttpResponseMessage Post([FromBody]PictureCreateModel picture)
        {
            var content = picture.Content;
             //   content = DetectFaces(content);

              var newPicture =  service.CreatePicture(picture.Name,picture.Description, content, picture.Longitude,picture.Latitude);

            PictureModel returnModel = new PictureModel();
            returnModel.Description = newPicture.Description;
            returnModel.Id = newPicture.ID;
            returnModel.Name = newPicture.Name;
            returnModel.UserId = newPicture.UserId;

            var response = Request.CreateResponse<PictureModel>(System.Net.HttpStatusCode.Created, returnModel);

            // Generate a link to the new book and set the Location header in the response.
            string uri = Url.Link("DefaultApi", new { id = returnModel.Id });
            response.Headers.Location = new Uri(uri);
            return response;
        }
 private static PictureModel ConvertPictureToPictureModel(Picture picture)
 {
     PictureModel model = new PictureModel();
     model.Description = picture.Description;
     model.Id = picture.ID;
     model.Name = picture.Name;
     model.UserId = picture.UserId;
     return model;
 }