Update the repsitories to know the "Add" function
This commit is contained in:
@@ -32,7 +32,7 @@ namespace skydiveLogs_api.Data
|
||||
return _col.Update(aircraft);
|
||||
}
|
||||
|
||||
public bool AddAircraft(Aircraft newAircraft)
|
||||
public bool Add(Aircraft newAircraft)
|
||||
{
|
||||
var result = true;
|
||||
|
||||
@@ -48,8 +48,7 @@ namespace skydiveLogs_api.Data
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private readonly IDataProvider _dataProvider;
|
||||
private readonly IDataProvider _dataProvider;
|
||||
|
||||
private readonly LiteCollection<Aircraft> _col;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user