diff --git a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs index 93b2c3a..2440814 100644 --- a/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs +++ b/YD_AllHeartRates.Api/Services/Impl/DeviceService.cs @@ -174,8 +174,8 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddAsync(entity); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -207,8 +207,8 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Update(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -227,8 +227,8 @@ namespace YD_AllHeartRates.Api.Services.Impl _sportsContext.Device.Remove(device); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } @@ -285,8 +285,8 @@ namespace YD_AllHeartRates.Api.Services.Impl await _sportsContext.AddRangeAsync(deviceList); var res = await _sportsContext.SaveChangesAsync() > 0; - _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); _caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}"); + _caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}"); return res; } }