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