1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-03 00:47:10 +02:00
Files
Sonarr/NzbDrone.Web/Controllers/SharedController.cs

31 lines
816 B
C#
Raw Normal View History

2011-04-19 18:20:20 -07:00
using System;
using System.Web.Mvc;
2011-11-08 09:48:34 -08:00
using NzbDrone.Common;
2011-12-01 17:33:17 -08:00
using NzbDrone.Core.Jobs;
using NzbDrone.Core.Providers;
2011-11-08 09:48:34 -08:00
using NzbDrone.Web.Models;
namespace NzbDrone.Web.Controllers
{
public class SharedController : Controller
{
2011-11-08 09:48:34 -08:00
private readonly EnviromentProvider _enviromentProvider;
2011-11-08 09:48:34 -08:00
public SharedController(JobProvider jobProvider, EnviromentProvider enviromentProvider)
{
2011-11-08 09:48:34 -08:00
_enviromentProvider = enviromentProvider;
}
public ActionResult Index()
{
return RedirectToAction("Index", "Series");
}
[ChildActionOnly]
public ActionResult Footer()
{
2011-11-08 09:48:34 -08:00
return PartialView(new FooterModel { BuildTime = _enviromentProvider.BuildDateTime, Version = _enviromentProvider.Version });
}
}
2011-04-09 19:44:01 -07:00
}