Fixup areas expecting VehicleId
This commit is contained in:
@@ -51,7 +51,8 @@ namespace MileageTraker.Web.ViewModels.FuelLog
|
||||
|
||||
static LogMatchViewModel()
|
||||
{
|
||||
Mapper.CreateMap<Models.Log, LogMatchViewModel>();
|
||||
Mapper.CreateMap<Models.Log, LogMatchViewModel>()
|
||||
.ForMember(dest => dest.VehicleId, opt => opt.MapFrom(src => src.Vehicle.VehicleId));
|
||||
}
|
||||
|
||||
public LogMatchViewModel(Models.Log log, Models.Vehicle vehicle, FuelLogViewModel fuelLog)
|
||||
|
||||
Reference in New Issue
Block a user