Add a information on the jump that is a special jump

Add the "update" feature on the jump.
This commit is contained in:
Sébastien André
2021-04-21 15:16:10 +02:00
parent 4e89cb5340
commit 69c49ab011
5 changed files with 16 additions and 5 deletions

View File

@@ -64,9 +64,14 @@ namespace skydiveLogs_api.DomainBusiness
return _jumpRepository.GetById(id);
}
public void UpdateJump(int id, Jump jump)
public void UpdateJump(int id, Jump updatedJump)
{
throw new NotImplementedException();
var myJump = GetJumpById(id);
myJump.IsSpecial = updatedJump.IsSpecial;
myJump.WithCutaway = updatedJump.WithCutaway;
myJump.Notes = updatedJump.Notes;
_jumpRepository.Update(myJump);
}
#endregion Public Methods