Add an endpoint to call the lof of jumps by page.

This commit is contained in:
Sébastien André
2022-05-08 16:42:04 +02:00
parent 0745943c5b
commit 9e18b7708a
16 changed files with 142 additions and 7 deletions

View File

@@ -63,6 +63,16 @@ namespace skydiveLogs_api.DomainBusiness
return _jumpRepository.GetById(id);
}
public int GetJumpCount()
{
return _jumpRepository.GetCount(_identityService.ConnectedUser);
}
public IEnumerable<Jump> GetJumpsByIndexes(int beginIndex, int endIndex)
{
return _jumpRepository.GetBetweenIndex(_identityService.ConnectedUser, beginIndex, endIndex);
}
public void UpdateJump(int id, Jump updatedJump)
{
var myJump = GetJumpById(id);