Add a property "IsFavorite" for the drop zone.
This commit is contained in:
@@ -27,6 +27,11 @@ namespace skydiveLogs_api.Data
|
||||
return _col.FindById(new BsonValue(id));
|
||||
}
|
||||
|
||||
public bool Update(Aircraft aircraft)
|
||||
{
|
||||
return _col.Update(aircraft);
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Aircraft> _col;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace skydiveLogs_api.Data
|
||||
return _col.FindById(new BsonValue(id));
|
||||
}
|
||||
|
||||
public bool Update(DropZone updatedDz)
|
||||
{
|
||||
return _col.Update(updatedDz);
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<DropZone> _col;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace skydiveLogs_api.Data
|
||||
return _col.FindById(new BsonValue(id));
|
||||
}
|
||||
|
||||
public bool Update(Gear updatedGear)
|
||||
{
|
||||
return _col.Update(updatedGear);
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Gear> _col;
|
||||
|
||||
@@ -8,5 +8,6 @@ namespace skydiveLogs_api.Data.Interface
|
||||
|
||||
T GetById(int id);
|
||||
|
||||
bool Update(T updated);
|
||||
}
|
||||
}
|
||||
@@ -48,6 +48,11 @@ namespace skydiveLogs_api.Data
|
||||
return result;
|
||||
}
|
||||
|
||||
public bool Update(Jump updatedJump)
|
||||
{
|
||||
throw new System.NotImplementedException();
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Jump> _col;
|
||||
|
||||
@@ -27,6 +27,11 @@ namespace skydiveLogs_api.Data
|
||||
return _col.FindById(new BsonValue(id));
|
||||
}
|
||||
|
||||
public bool Update(JumpType updatedJumpType)
|
||||
{
|
||||
return _col.Update(updatedJumpType);
|
||||
}
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<JumpType> _col;
|
||||
|
||||
Reference in New Issue
Block a user