Add a information on the jump that is a special jump
Add the "update" feature on the jump.
This commit is contained in:
@@ -25,5 +25,7 @@ namespace skydiveLogs_api.Domain
|
|||||||
public string Notes { get; set; }
|
public string Notes { get; set; }
|
||||||
|
|
||||||
public DateTime JumpDate { get; set; }
|
public DateTime JumpDate { get; set; }
|
||||||
|
|
||||||
|
public bool IsSpecial { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -64,9 +64,14 @@ namespace skydiveLogs_api.DomainBusiness
|
|||||||
return _jumpRepository.GetById(id);
|
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
|
#endregion Public Methods
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ namespace skydiveLogs_api.Infrastructure
|
|||||||
|
|
||||||
public bool Update(Jump updatedJump)
|
public bool Update(Jump updatedJump)
|
||||||
{
|
{
|
||||||
throw new System.NotImplementedException();
|
return _col.Update(updatedJump);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool DeleteById(int id)
|
public bool DeleteById(int id)
|
||||||
|
|||||||
@@ -23,5 +23,7 @@ namespace skydiveLogs_api.DataContract
|
|||||||
public string Notes { get; set; }
|
public string Notes { get; set; }
|
||||||
|
|
||||||
public DateTime JumpDate { get; set; }
|
public DateTime JumpDate { get; set; }
|
||||||
|
|
||||||
|
public bool IsSpecial { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -23,5 +23,7 @@ namespace skydiveLogs_api.DataContract
|
|||||||
public string Notes { get; set; }
|
public string Notes { get; set; }
|
||||||
|
|
||||||
public DateTime JumpDate { get; set; }
|
public DateTime JumpDate { get; set; }
|
||||||
|
|
||||||
|
public bool IsSpecial { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user