ddd
This commit is contained in:
parent
180e0fc8aa
commit
3db004ef8d
@ -174,7 +174,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
|
|||||||
await _sportsContext.AddAsync(entity);
|
await _sportsContext.AddAsync(entity);
|
||||||
var res = await _sportsContext.SaveChangesAsync() > 0;
|
var res = await _sportsContext.SaveChangesAsync() > 0;
|
||||||
|
|
||||||
_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
//_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
||||||
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -207,7 +207,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
|
|||||||
_sportsContext.Update(device);
|
_sportsContext.Update(device);
|
||||||
var res = await _sportsContext.SaveChangesAsync() > 0;
|
var res = await _sportsContext.SaveChangesAsync() > 0;
|
||||||
|
|
||||||
_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
//_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
||||||
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -227,7 +227,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
|
|||||||
_sportsContext.Device.Remove(device);
|
_sportsContext.Device.Remove(device);
|
||||||
var res = await _sportsContext.SaveChangesAsync() > 0;
|
var res = await _sportsContext.SaveChangesAsync() > 0;
|
||||||
|
|
||||||
_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
//_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
||||||
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -285,7 +285,7 @@ namespace YD_AllHeartRates.Api.Services.Impl
|
|||||||
await _sportsContext.AddRangeAsync(deviceList);
|
await _sportsContext.AddRangeAsync(deviceList);
|
||||||
var res = await _sportsContext.SaveChangesAsync() > 0;
|
var res = await _sportsContext.SaveChangesAsync() > 0;
|
||||||
|
|
||||||
_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
//_caching.Remove($"{AppSettings.DeviceListCacheKey}_{schoolCode}");
|
||||||
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
_caching.Remove($"{AppSettings.StudentListCacheKey}_{schoolCode}");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user