Add a property "IsFavorite" for the drop zone.

This commit is contained in:
Sébastien André
2019-11-27 14:06:22 +01:00
parent 41eecd2a68
commit bee8ca06f4
13 changed files with 60 additions and 17 deletions

View File

@@ -35,9 +35,10 @@ namespace skydiveLogs_api.Business
return _dropZoneRepository.GetById(id);
}
public void UpdateDz(int id, DropZone dropZone)
public bool UpdateDz(int id, DropZone dropZone)
{
throw new NotImplementedException();
dropZone.Id = id;
return _dropZoneRepository.Update(dropZone);
}
private readonly IDropZoneRepository _dropZoneRepository;

View File

@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.Generic;
using skydiveLogs_api.Model;
namespace skydiveLogs_api.Business.Interface
@@ -13,7 +11,7 @@ namespace skydiveLogs_api.Business.Interface
void DeleteDzById(int id);
void UpdateDz(int id, DropZone dropZone);
bool UpdateDz(int id, DropZone dropZone);
void AddNewDz(DropZone dropZone);
}