1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 10:51:48 +00:00
Radarr/NzbDrone.Web/Controllers/SharedController.cs

28 lines
758 B
C#
Raw Normal View History

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