public ActionResult Services(ServiceSettingsViewModel model) { if (!ModelState.IsValid) { return(View(new ServiceSettingsViewModel(Settings.ActiveSettings))); } Settings.ActiveSettings = model.ToSettingModel(Settings.ActiveSettings); MPEServices.SetConnectionUrls(Settings.ActiveSettings.MASUrl, Settings.ActiveSettings.TASUrl); return(RedirectToAction("Services")); }
public IActionResult Settings(ServiceSettingsViewModel vm) { SettingService.SaveSettings(vm); return(RedirectToIndex()); }
public IActionResult Settings() { ServiceSettingsViewModel vm = SettingService.GetSettings <ServiceSettingsViewModel>(); return(View(vm)); }