1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00
Sonarr/NzbDrone.Web/Controllers/SystemController.cs

44 lines
1.0 KiB
C#
Raw Normal View History

2011-04-22 09:23:29 +03:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NzbDrone.Core.Providers;
using NzbDrone.Core.Providers.Core;
2011-04-22 09:23:29 +03:00
using NzbDrone.Core.Providers.Jobs;
namespace NzbDrone.Web.Controllers
{
public class SystemController : Controller
{
private readonly JobProvider _jobProvider;
private readonly IndexerProvider _indexerProvider;
private readonly ConfigProvider _configProvider;
2011-04-22 09:23:29 +03:00
public SystemController(JobProvider jobProvider, IndexerProvider indexerProvider, ConfigProvider configProvider)
2011-04-22 09:23:29 +03:00
{
_jobProvider = jobProvider;
_indexerProvider = indexerProvider;
_configProvider = configProvider;
2011-04-22 09:23:29 +03:00
}
public ActionResult Jobs()
{
return View(_jobProvider.All());
}
public ActionResult Indexers()
{
return View(_indexerProvider.All());
}
public ActionResult Config()
{
return View(_configProvider.All());
}
2011-04-22 09:23:29 +03:00
}
}