public static EventsGalleryModel EventGalleryToEventGalleryModel(EventGallery gallery)
        {
            return new EventsGalleryModel
            {
                Caption = gallery.Caption,
                Id = gallery.Id,
                Photo = gallery.Photo,
                EventId = gallery.EventId

            };
        }
 internal EventGallery AddEventGallery(EventGallery gallery)
 {
     db.EventGalleries.Add(gallery);
     db.SaveChanges();
     return gallery;
 }