public IActionResult Index() { return(View(_vehicleTypeRepository.GetAllEntities())); }
public IActionResult Create() { ViewBag.OwnerName = new SelectList(_ownerRepository.GetAllEntities(), "Id", "OwnerPersonalId"); ViewBag.VehicleTypeName = new SelectList(_vehicleTypeRepository.GetAllEntities(), "Name", "Name"); return(View()); }