mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 01:23:53 -07:00
Renamed all Core.Controllers to Core.Providers to avoid confusion between Core Controllers and MVC controllers
This commit is contained in:
parent
9515c8788a
commit
01c1943d0e
24 changed files with 125 additions and 152 deletions
|
@ -3,31 +3,31 @@ using System.Collections.Generic;
|
|||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using NzbDrone.Core.Controllers;
|
||||
using NzbDrone.Core.Providers;
|
||||
|
||||
namespace NzbDrone.Web.Controllers
|
||||
{
|
||||
public class SeriesController : Controller
|
||||
{
|
||||
private readonly ISeriesController _seriesController;
|
||||
private readonly ISeriesProvider _seriesProvider;
|
||||
//
|
||||
// GET: /Series/
|
||||
|
||||
public SeriesController(ISeriesController seriesController)
|
||||
public SeriesController(ISeriesProvider seriesProvider)
|
||||
{
|
||||
_seriesController = seriesController;
|
||||
_seriesProvider = seriesProvider;
|
||||
}
|
||||
|
||||
public ActionResult Index()
|
||||
{
|
||||
ViewData.Model = _seriesController.GetSeries().ToList();
|
||||
ViewData.Model = _seriesProvider.GetSeries().ToList();
|
||||
return View();
|
||||
}
|
||||
|
||||
|
||||
public ActionResult Sync()
|
||||
{
|
||||
_seriesController.SyncSeriesWithDisk();
|
||||
_seriesProvider.SyncSeriesWithDisk();
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ namespace NzbDrone.Web.Controllers
|
|||
|
||||
public ActionResult Details(int tvdbId)
|
||||
{
|
||||
return View(_seriesController.GetSeries(tvdbId));
|
||||
return View(_seriesProvider.GetSeries(tvdbId));
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue