public Photo CreatePhoto(PhotoModel photoModel)
 {
     try
     {
         var photo = new Photo()
         {
             PhotoId = photoModel.PhotoId,
             Image=photoModel.Image,
             PlaceId=photoModel.PlaceId,
             UserId=photoModel.UserId,
             UploadDate=photoModel.UploadDate
         };
         return photo;
     }
     catch (Exception)
     {
         throw null;
     }
 }
 public PhotoModel CreatePhotoModel(Photo photo, string msg)
 {
     return new PhotoModel()
     {
         PhotoId=photo.PhotoId,
         Image=photo.Image,
         PlaceId=(int)photo.PlaceId,
         UserId=(int)photo.UserId,
         UploadDate=(DateTime)photo.UploadDate,
         Message=msg
     };
 }