private async Task savePriceSettings(string pricesettings) // convert to json { DashboardOnePriceSettings dashboardPriceSettings = DashboardOnePriceSettings.Deserialize(pricesettings); bool priceSettingsExists = _stockScreenerService.FindDashboardOnePriceSettings("0"); if (priceSettingsExists) { await _stockScreenerService.UpdatePriceSettings(dashboardPriceSettings); } else { await _stockScreenerService.Create(dashboardPriceSettings); } await Task.Delay(100); }