예제 #1
0
        public void SaveFloor(FloorEntity floorEntity)
        {
            BookingEntity booking = new BookingEntity();
            CarEntity     car     = new CarEntity();

            if ((ParkingPlaceAvailabe(floorEntity, booking) == true) && floorEntity.ID == 0 && floorEntity.BookedPlace == "empty")
            {
                _floorRepository.Insert(floorEntity);
            }
            else
            if (CheckBookingNo(booking, car) == true)
            {
                _floorRepository.Update(floorEntity);
            }
        }