Example #1
0
 public SettingsViewModel Execute(SettingsInputModel inputModel)
 {
     return(new SettingsViewModel());
 }
Example #2
0
 public IActionResult Update(SettingsInputModel input)
 {
     new SettingsDb(_config).UpdateSetting(input.Setting, input.CompanyId);
     UserHelper.setLoggedOnUserCompanyId(input.CompanyId);
     return(RedirectToAction("Index", new { companyId = input.CompanyId }));
 }