added tests for basic config set/get to db

This commit is contained in:
kay.one 2010-09-23 23:16:43 -07:00
parent 1620721efe
commit 772452aa8b
13 changed files with 5874 additions and 13 deletions

View file

@ -21,7 +21,7 @@ namespace NzbDrone.Web.Controllers
public ActionResult Index()
{
return View(new SettingsModel() { RootPath = _configController.SeriesRoot });
return View(new SettingsModel() { TvFolder = _configController.SeriesRoot });
}
[HttpPost]
@ -29,7 +29,7 @@ namespace NzbDrone.Web.Controllers
{
if (ModelState.IsValid)
{
_configController.SeriesRoot = model.RootPath;
_configController.SeriesRoot = model.TvFolder;
}
return RedirectToAction("index");