Add the "delete" feature for the "Jump"
This commit is contained in:
@@ -51,7 +51,7 @@ namespace skydiveLogs_api.DomainBusiness
|
||||
|
||||
public void DeleteJumpById(int id)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
_jumpRepository.DeleteById(id);
|
||||
}
|
||||
|
||||
public IEnumerable<Jump> GetAllJumps()
|
||||
|
||||
@@ -6,5 +6,7 @@ namespace skydiveLogs_api.DomainService.Repositories
|
||||
public interface IJumpRepository : IRepository<Jump>
|
||||
{
|
||||
IEnumerable<Jump> GetAll(User user);
|
||||
|
||||
bool DeleteById(int id);
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,11 @@ namespace skydiveLogs_api.Infrastructure
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
public bool DeleteById(int id)
|
||||
{
|
||||
return _col.Delete(new BsonValue(id));
|
||||
}
|
||||
|
||||
#endregion Public Methods
|
||||
|
||||
#region Private Fields
|
||||
|
||||
Reference in New Issue
Block a user