示例#1
0
        public static EventsGalleryModel EventGalleryToEventGalleryModel(EventGallery gallery)
        {
            return new EventsGalleryModel
            {
                Caption = gallery.Caption,
                Id = gallery.Id,
                Photo = gallery.Photo,
                EventId = gallery.EventId

            };
        }
示例#2
0
 internal EventGallery AddEventGallery(EventGallery gallery)
 {
     db.EventGalleries.Add(gallery);
     db.SaveChanges();
     return gallery;
 }