public ActionResult Settings(SettingsViewModel viewModel)
 {
     if (!ModelState.IsValid)
         return View(viewModel);
     _settingsService.Settings.EnableFrontendResizeAction = viewModel.EnableFrontendResizeAction;
     _settingsService.Settings.MaxImageHeight = viewModel.MaxImageHeight;
     _settingsService.Settings.MaxImageWidth = viewModel.MaxImageWidth;
     _settingsService.Settings.EnableContentItemFolderCleanup = viewModel.EnableContentItemFolderCleanup;
     _settingsService.SaveSettings();
     return RedirectToAction("Settings");
 }
 public ActionResult Settings()
 {
     var viewModel = new SettingsViewModel(_settingsService.Settings);
     return View(viewModel);
 }