using System;
using System.Data;
using System.Web.Mvc;

using BrnShop.Core;
using BrnShop.Services;
using BrnShop.Web.Framework;
using BrnShop.Web.Models;

namespace BrnShop.Web.Controllers
{
    /// <summary>
    /// 首页控制器类
    /// </summary>
    public class HomeController : BaseWebController
    {
        /// <summary>
        /// 首页
        /// </summary>
        public ActionResult Index()
        {
            HomeModel model = new HomeModel();

            model.BannerList = Banners.GetHomeBannerList();
            model.HomeNewsList = News.GetHomeNewsList(0, 6);

            return View(model);
        }
    }
}