1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-13 14:32:38 +01:00
Radarr/NzbDrone.Web/Controllers/SharedController.cs

39 lines
1.0 KiB
C#
Raw Normal View History

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