public async Task SaveAsync(TimersSettings timersSettings) { await _timersSettingsRepository.InsertOrReplaceAsync(timersSettings); _cache.Set(timersSettings); }
public async Task UpdateAsync(TimersSettings timersSettings, string userId) { await _timersSettingsRepository.InsertOrReplaceAsync(timersSettings); _cache.Set(timersSettings); }