1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-01 16:32:56 +01:00
Sonarr/NzbDrone.Web/Controllers/SharedController.cs

28 lines
766 B
C#
Raw Normal View History

using System.Web.Mvc;
2011-11-08 18:48:34 +01:00
using NzbDrone.Common;
using NzbDrone.Web.Models;
namespace NzbDrone.Web.Controllers
{
public class SharedController : Controller
{
private readonly EnvironmentProvider _environmentProvider;
public SharedController(EnvironmentProvider environmentProvider)
{
_environmentProvider = environmentProvider;
}
public ActionResult Index()
{
return RedirectToAction("Index", "Series");
}
[ChildActionOnly]
[OutputCache(Duration = 3600)]
public ActionResult Footer()
{
return PartialView(new FooterModel { BuildTime = _environmentProvider.BuildDateTime, Version = _environmentProvider.Version });
}
}
2011-04-10 04:44:01 +02:00
}