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.
35 lines
797 B
35 lines
797 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.Mvc;
|
|
using NzbDrone.Core.Providers;
|
|
using NzbDrone.Core.Providers.Jobs;
|
|
|
|
namespace NzbDrone.Web.Controllers
|
|
{
|
|
public class SystemController : Controller
|
|
{
|
|
private readonly JobProvider _jobProvider;
|
|
private readonly IndexerProvider _indexerProvider;
|
|
|
|
public SystemController(JobProvider jobProvider, IndexerProvider indexerProvider)
|
|
{
|
|
_jobProvider = jobProvider;
|
|
_indexerProvider = indexerProvider;
|
|
}
|
|
|
|
public ActionResult Jobs()
|
|
{
|
|
return View(_jobProvider.All());
|
|
}
|
|
|
|
public ActionResult Indexers()
|
|
{
|
|
return View(_indexerProvider.All());
|
|
}
|
|
|
|
|
|
}
|
|
}
|