﻿namespace Beekeeper.Web.Controllers
{
    using System.Web.Mvc;
    using Areas.User.Controllers;

    public class HomeController : BaseController
    {
        [AllowAnonymous]
        public ActionResult Index()
        {
            if (this.Request.IsAuthenticated)
            {
                return this.RedirectToAction(nameof(DashboardController.Index), "Dashboard", new { area = "User" });
            }

            return this.View();
        }
    }
}
