public async Task <IHttpActionResult> DeletePhotoSaveHistory(LikePhotoBindingModel model)
        {
            LikePhoto likePhoto = await db.LikePhotos.Where(photo => photo.UserId == model.UserId).Where(photo => photo.PhotoId == model.PhotoId).FirstAsync();

            if (likePhoto == null)
            {
                return(NotFound());
            }

            db.LikePhotos.Remove(likePhoto);
            await db.SaveChangesAsync();

            return(Ok(likePhoto));
        }
        public async Task <IHttpActionResult> PostPhotoSaveHistory(LikePhotoBindingModel model)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var likePhoto = new LikePhoto()
            {
                UserId  = model.UserId,
                PhotoId = model.PhotoId,
                Date    = DateTime.Now,
                Deleted = false
            };

            db.LikePhotos.Add(likePhoto);
            await db.SaveChangesAsync();

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