Example #1
0
        public async Task <IActionResult> Index()
        {
            // TODO : Get Instagram posts.
            List <string> model = _spiikService.GetImages("slideshow");

            return(View(model));
        }
Example #2
0
        public async Task <IActionResult> Index()
        {
            var model = await _db.Organization.AsNoTracking().SingleOrDefaultAsync();

            var viewModel = new ForeningViewModel(model);

            viewModel.SlideshowSrc = _spiikService.GetImages("slideshow");
            return(View(viewModel));
        }