Fixed some petapoco issue with insert.

This commit is contained in:
kay.one 2011-07-02 16:45:29 -07:00
parent 5a4e8330b2
commit 861026f743
6 changed files with 4 additions and 70 deletions

View file

@ -269,37 +269,7 @@ namespace NzbDrone.Web.Controllers
}
}
[HttpPost]
public ActionResult SaveGeneral(SettingsModel data)
{
var basicNotification = new BasicNotification();
basicNotification.Type = BasicNotificationType.Info;
basicNotification.AutoDismiss = true;
try
{
foreach (var dir in data.Directories)
{
_rootDirProvider.Update(dir);
}
}
catch (Exception ex)
{
Logger.Debug("Failed to save Root Dirs");
Logger.DebugException(ex.Message, ex);
basicNotification.Title = SETTINGS_FAILED;
_notificationProvider.Register(basicNotification);
return Content(SETTINGS_FAILED);
}
basicNotification.Title = SETTINGS_SAVED;
_notificationProvider.Register(basicNotification);
return Content(SETTINGS_SAVED);
}
[HttpPost]
public ActionResult SaveIndexers(IndexerSettingsModel data)
{