Beispiel #1
0
 public bool ParkingUserQueryValidate(Models.Parking_User_idRequest parkingPlace)
 {
     if (parkingPlace != null && ModelState.IsValid)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
 public bool SetPark(Models.Parking_User_idRequest parkingUser)
 {
     _ParkingPlace      = new Models.ParkingPlace();
     _ParkingPlaceLogic = new ParkMarkLogic.ParkingPlaceLogic();
     if (ParkingUserQueryValidate(parkingUser))
     {
         bool result;
         result = _ParkingPlaceLogic.SetPark(parkingUser.ParkingID, parkingUser.UserInfoID);
         return(result);
     }
     else
     {
         return(false);
     }
 }