public VehicleCheckInViewModel(string vehicleType) { this.vehicleBusinessLogic = new VehicleBusinessLogic(); this.vehicle = new Vehicle(); this.vehicle.VehicleType = vehicleType; isVisibleDisplacement = VehicleBLHelper.IsMotorcycle(this.vehicle); }
private void RemoveItem() { if (VehicleBLHelper.IsMotorcycle(this)) { RemoveMotorcycleItem(); } else { RemoveCarItem(); } }
public async Task <Response> GetAllActiveVehicles(string vehicleType) { Response response; if (VehicleBLHelper.IsCar(vehicleType)) { response = await GetActiveCars(); } else { response = await GetActiveMotorcycles(); } return(response); }