Fix on the admin user.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user