Update the business layer to implement the "Add" action
This commit is contained in:
@@ -17,7 +17,7 @@ namespace skydiveLogs_api.Business
|
||||
|
||||
public void AddNewAircraft(Aircraft newAircraft)
|
||||
{
|
||||
_aircraftRepository.AddAircraft(newAircraft);
|
||||
_aircraftRepository.Add(newAircraft);
|
||||
}
|
||||
|
||||
public void DeleteAircraftById(int id)
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace skydiveLogs_api.Business
|
||||
_dropZoneRepository = dropZoneRepository;
|
||||
}
|
||||
|
||||
public void AddNewDz(DropZone dropZone)
|
||||
public void AddNewDz(DropZone newdropZone)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
_dropZoneRepository.Add(newdropZone);
|
||||
}
|
||||
|
||||
public void DeleteDzById(int id)
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace skydiveLogs_api.Business
|
||||
_gearRepository = gearRepository;
|
||||
}
|
||||
|
||||
public void AddNewGear(Gear Gear)
|
||||
public void AddNewGear(Gear newGear)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
_gearRepository.Add(newGear);
|
||||
}
|
||||
|
||||
public void DeleteGearById(int id)
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace skydiveLogs_api.Business
|
||||
jump.DropZone = selectedDropZone;
|
||||
jump.Gear = selectedGear;
|
||||
|
||||
_jumpRepository.AddJump(jump);
|
||||
_jumpRepository.Add(jump);
|
||||
}
|
||||
|
||||
public void DeleteJumpById(int id)
|
||||
|
||||
@@ -15,9 +15,9 @@ namespace skydiveLogs_api.Business
|
||||
_jumpTypeRepository = jumpTypeRepository;
|
||||
}
|
||||
|
||||
public void AddNewJumpType(JumpType value)
|
||||
public void AddNewJumpType(JumpType newJumpType)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
_jumpTypeRepository.Add(newJumpType);
|
||||
}
|
||||
|
||||
public void DeleteJumpTypeById(int id)
|
||||
|
||||
Reference in New Issue
Block a user