Fix on the admin user.

This commit is contained in:
Sébastien André
2021-03-18 15:50:41 +01:00
parent b192bb7192
commit 7caf1d7df2
16 changed files with 80 additions and 37 deletions

View File

@@ -22,6 +22,23 @@ namespace skydiveLogs_api.DomainBusiness
_gearRepository.Add(newGear);
}
public void AddRentalGear(User connectedUser)
{
var rentalGear = new Gear
{
Name = "Rental gear",
Manufacturer = "?",
MainCanopy = "?",
Aad = "Cypress/Vigil",
MaxSize = 280,
MinSize = 190,
ReserveCanopy = "?",
User = connectedUser
};
_gearRepository.Add(rentalGear);
}
public void DeleteGearById(int id)
{
throw new NotImplementedException();