Add controler, domain and service about "Tunnel"
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user