Ejemplo n.º 1
0
 public void AssignParkingSpace(VehicleType SVType)
 {
     if (SVType != null && DriverName != null && VehicleNumber != null)
     {
         VehicleDetails        vDetailsObj = new VehicleDetails();
         ParkingBookingHistory pObj        = new ParkingBookingHistory();
         vDetailsObj.DriverName    = DriverName;
         vDetailsObj.VehicleNumber = VehicleNumber;
         vDetailsObj.VehicleTypeID = SVType.VehicleTypeID;
         pObj    = _dbLayerObj.CreateParkingHistory(vDetailsObj);
         Message = "Parking Space Assigned is : " + pObj.SlotName;
     }
     else
     {
         Message = "All Fields are compulsory";
     }
 }