Add controler, domain and service about "Tunnel"

This commit is contained in:
Sébastien ANDRE
2023-05-03 14:23:07 +02:00
parent 738b0aa439
commit 8b5a3f274e
11 changed files with 230 additions and 3 deletions

View File

@@ -87,6 +87,7 @@ namespace skydiveLogs_api.DomainBusiness
public bool RemoveToFavorite(int dzId)
{
var result = _favoriteDropZoneRepository.Delete(dzId, _identityService.ConnectedUser.Id);
_cacheService.Delete(CacheType.DropZone);
return result > 0;
}
@@ -95,7 +96,11 @@ namespace skydiveLogs_api.DomainBusiness
{
dropZone.Id = id;
return _dropZoneRepository.Update(dropZone);
var result = _dropZoneRepository.Update(dropZone);
if (result)
_cacheService.Delete(CacheType.DropZone);
return result;
}
private IEnumerable<DropZone> GetAllRefDzs()