Esempio n. 1
0
 public ActionResult Settings(SettingsViewModel viewModel)
 {
     if (!ModelState.IsValid)
         return View(viewModel);
     _settingsService.AWSAccessKey = viewModel.AWSAccessKey;
     _settingsService.AWSFileBucket = viewModel.AWSFileBucket;
     _settingsService.AWSS3PublicUrl = viewModel.AWSS3PublicUrl;
     _settingsService.AWSSecretKey = viewModel.AWSSecretKey;
     _settingsService.RootFolder = viewModel.RootFolder;
     _settingsService.Save();
     return RedirectToAction("Settings");
 }
Esempio n. 2
0
 public ActionResult Settings()
 {
     var viewModel = new SettingsViewModel(_settingsService);
     return View(viewModel);
 }