Add a information on the jump that is a special jump
Add the "update" feature on the jump.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user