public void AddDefaultVehicalType(BuySellDoc buySellDoc) { if (buySellDoc.VehicalTypeRequestedId.IsNullOrWhiteSpace()) { VehicalType vt = VehicalTypeBiz.FindByName("Any Vehical Type"); vt.IsNullThrowException(); buySellDoc.VehicalTypeRequestedId = vt.Id; } }
public Automobile(string id, VehicalType typeOfVehical, string brand, string modelSeries, string modelId, DateTime manufacturingDate, double showroomPrice) { Id = id; Type = typeOfVehical; Brand = brand; ModelSeries = modelSeries; ModelId = modelId; ManufacturingDate = manufacturingDate; ShowroomPrice = showroomPrice; }
protected Vehicle(int weight, VehicalType type, bool enviromentVehicle) { Weight = weight; Type = type; EnviromentVehicle = enviromentVehicle; }