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