Beispiel #1
0
 public VehicleCheckInViewModel(string vehicleType)
 {
     this.vehicleBusinessLogic = new VehicleBusinessLogic();
     this.vehicle             = new Vehicle();
     this.vehicle.VehicleType = vehicleType;
     isVisibleDisplacement    = VehicleBLHelper.IsMotorcycle(this.vehicle);
 }
Beispiel #2
0
 private void RemoveItem()
 {
     if (VehicleBLHelper.IsMotorcycle(this))
     {
         RemoveMotorcycleItem();
     }
     else
     {
         RemoveCarItem();
     }
 }
Beispiel #3
0
        public async Task <Response> GetAllActiveVehicles(string vehicleType)
        {
            Response response;

            if (VehicleBLHelper.IsCar(vehicleType))
            {
                response = await GetActiveCars();
            }
            else
            {
                response = await GetActiveMotorcycles();
            }
            return(response);
        }