Manage the update of some data at the
start of the database
This commit is contained in:
@@ -92,12 +92,12 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
return result > 0;
|
||||
}
|
||||
|
||||
public bool UpdateDz(int id, DropZone dropZone)
|
||||
public bool UpdateDz(int id, DropZone dropZone, bool resetCache = true)
|
||||
{
|
||||
dropZone.Id = id;
|
||||
|
||||
var result = _dropZoneRepository.Update(dropZone);
|
||||
if (result)
|
||||
if (resetCache && result)
|
||||
_cacheService.Delete(CacheType.DropZone);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user