You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Lidarr/NzbDrone.Web/Controllers/SharedController.cs

28 lines
766 B

using System.Web.Mvc;
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 });
}
}
}