public static MakeDTO CreateDTO(MakeModel model) { MakeDTO newDTO = new MakeDTO() { id = model.id, name = model.name }; return(newDTO); }
public static VehicleDTO CreateDTO(VehicleModel vehmodel) { VehicleDTO newDTO = new VehicleDTO() { licenseNum = vehmodel.licenceNum, model = vehmodel.model, make = MakeDTO.CreateDTO(vehmodel.make), colour = vehmodel.colour, state = vehmodel.state, active = vehmodel.active }; return(newDTO); }