﻿using MyWebApp.Models.Bootstrap;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace MyWebApp.Controllers
{
    public class BootstrapCarouselController : Controller
    {
        public static Carousel Carousel = new Carousel();

        static BootstrapCarouselController()
        {
            Carousel.Items = new List<CarouselItem>();
            Carousel.Items.Add(new CarouselItem { Id = 1, Active = "active", Caption = "Slide 1", ImageUrl = "http://placehold.it/900x500/39CCCC/ffffff&text=Bootstrap+Carousel+1" });
            Carousel.Items.Add(new CarouselItem { Id = 2, Active = "", Caption = "Slide 2", ImageUrl = "http://placehold.it/900x500/39CCCC/ffffff&text=Bootstrap+Carousel+2" });
            Carousel.Items.Add(new CarouselItem { Id = 3, Active = "", Caption = "Slide 3", ImageUrl = "http://placehold.it/900x500/39CCCC/ffffff&text=Bootstrap+Carousel+3" });
        }
        // GET: BootstrapCarousel
        public ActionResult Index()
        {
            return View(Carousel);
        }
    }
}