public ListFuelTypeForRefuelingForListVm GetAllFuelsTypesForRefuling() { var vehicleFuelTypesVm = _vehicleRepository.GetFuelTypesForRefueling() .ProjectTo <FuelTypeForRefuelingForListVm>(_mapper.ConfigurationProvider).ToList(); var vehicleFuelTypeForRefueling = new ListFuelTypeForRefuelingForListVm(); vehicleFuelTypeForRefueling.FuelTypeForRefuelingForLists = vehicleFuelTypesVm; return(vehicleFuelTypeForRefueling); }
public ListFuelTypeForRefuelingForListVm GetFuelAllTypeForRefueling() { var fuelTypesList = _vehicleRepository.GetFuelTypesForRefueling() .ProjectTo <FuelTypeForRefuelingForListVm>(_mapper.ConfigurationProvider) .ToList(); var listFuelTypesForRefueling = new ListFuelTypeForRefuelingForListVm() { FuelTypeForRefuelingForLists = fuelTypesList }; return(listFuelTypesForRefueling); }