コード例 #1
0
 public void UpdateSpyAccountSettings(NewSpySettingsViewModel newSettings)
 {
     new SaveSpyFunctionsCommandHandler(new DataBaseContext()).Handle(new SaveSpyFunctionsCommand
     {
         SpyId     = newSettings.SpyId,
         Functions = newSettings.functions
     });
 }
コード例 #2
0
 public ActionResult UpdateSpyOptions(NewSpySettingsViewModel newSettings)
 {
     spySettingsService.UpdateSpyAccountSettings(newSettings);
     return(RedirectToAction("Index", "SpyOptions", new { accountId = newSettings.SpyId }));
 }