public IEnumerable <Models.Gallery> GetGallery([Control("ItemId")] int itemId)
        {
            presenters = new GalleryPresenter
            {
                repository = new MemoryRepository()
            };
            IEnumerable <Models.Gallery> repo = presenters.GetAll().Where(e => e.EventId == itemId);

            return(repo);
        }
Ejemplo n.º 2
0
        public IEnumerable <Models.Gallery> GetGallery()
        {
            presenters = new GalleryPresenter
            {
                repository = new MemoryRepository()
            };
            IEnumerable <Models.Gallery> repo = presenters.GetAll().Take(3);

            return(repo);
        }