public IActionResult AddVehicle()
        {
            var model = new AddServiceItemViewModel
            {
                Vehicles = _vehicleRepository.GetComboVehicles(),
                ServiceType = _serviceTypeRepository.GetAllServiceTypes(),
                Parts = _partsRepository.GetAllParts()
            };

            return View(model);
        }
Exemplo n.º 2
0
 public List <PartsDto> GetAllParts()
 {
     return(_partsRepository.GetAllParts());
 }