Update the repository pattern

This commit is contained in:
Sébastien André
2019-11-10 19:31:55 +01:00
parent 3f1d648fa9
commit b95eedbf7c
19 changed files with 112 additions and 73 deletions

View File

@@ -27,12 +27,12 @@ namespace skydiveLogs_api.Business
public IEnumerable<DropZone> GetAllDzs()
{
return _dropZoneRepository.GetAllDzs();
return _dropZoneRepository.GetAll();
}
public DropZone GetDzById(int id)
{
return _dropZoneRepository.GetDzById(id);
return _dropZoneRepository.GetById(id);
}
public void UpdateDz(int id, DropZone dropZone)