Implementation to have a favorite DZ by user.

This commit is contained in:
Sébastien André
2021-03-24 18:04:08 +01:00
parent beee601a57
commit 0a6dbf42e4
12 changed files with 255 additions and 194 deletions

View File

@@ -7,7 +7,7 @@ namespace skydiveLogs_api.DomainBusiness.Interfaces
{
public interface IDropZoneService
{
IEnumerable<DropZone> GetAllDzs();
IEnumerable<DropZone> GetAllDzs(User connectedUser);
DropZone GetDzById(int id);
@@ -16,5 +16,9 @@ namespace skydiveLogs_api.DomainBusiness.Interfaces
bool UpdateDz(int id, DropZone dropZone);
void AddNewDz(DropZone dropZone);
bool AddToFavorite(int dzId, User connectedUser);
bool RemoveToFavorite(int dzId, User connectedUser);
}
}