1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-11 13:32:42 +01:00
Radarr/NzbDrone.Web/Controllers/SharedController.cs
2011-11-26 22:02:32 -08:00

31 lines
826 B
C#

using System;
using System.Web.Mvc;
using NzbDrone.Common;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Jobs;
using NzbDrone.Web.Models;
namespace NzbDrone.Web.Controllers
{
public class SharedController : Controller
{
private readonly EnviromentProvider _enviromentProvider;
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
{
_enviromentProvider = enviromentProvider;
}
public ActionResult Index()
{
return RedirectToAction("Index", "Series");
}
[ChildActionOnly]
public ActionResult Footer()
{
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
}
}
}