public void UpdateSpyAccountSettings(NewSpySettingsViewModel newSettings) { new SaveSpyFunctionsCommandHandler(new DataBaseContext()).Handle(new SaveSpyFunctionsCommand { SpyId = newSettings.SpyId, Functions = newSettings.functions }); }
public ActionResult UpdateSpyOptions(NewSpySettingsViewModel newSettings) { spySettingsService.UpdateSpyAccountSettings(newSettings); return(RedirectToAction("Index", "SpyOptions", new { accountId = newSettings.SpyId })); }