This commit is contained in:
David Štaleker
2023-07-02 20:53:16 +02:00
parent 625b013b67
commit c23c81e288
3 changed files with 12 additions and 0 deletions

View File

@@ -50,6 +50,13 @@ namespace EveryThing.Pages.CodeTableVehicles
return NotFound();
}
}
else
{
Vehicle = new Vehicle
{
IdCompanyFk = user.IdCompanyFk
};
}
ViewData["VehicleType"] = new SelectList(_context.VehicleTypes
.Where(x => x.IdCompanyFk == user.IdCompanyFk && x.Active), "IdVehicleType", "Title");