public static ParkedVehical ParkVehical(ParkingService parkingService)
        {
            ParkedVehical vehical = new ParkedVehical();

            Console.WriteLine("Please enter details");
            Console.Write("Vehical Type : ");
            var type = parkingService.ParkingAvailable(Console.ReadLine());

            if (type >= 1)
            {
                Console.Write("Vehical number : ");
                vehical.VehicalNumber = Console.ReadLine();

                if (parkingService.ParkingStatus(vehical.VehicalNumber) == null)
                {
                    vehical.ParkingLot = type;
                    return(vehical);
                }
                else
                {
                    Console.WriteLine(vehical.VehicalNumber + " already parked in parking");
                    return(null);
                }
            }
            else
            {
                Console.WriteLine("For this vehical parking is not available");
                return(null);
            }
        }
        public static int ReleaseVehical(ParkingService parkingService)
        {
            ParkedVehical vehical = new ParkedVehical();

            Console.Write("Please enter vehical number : ");
            vehical.VehicalNumber = Console.ReadLine();
            int id = parkingService.GetVehicalId(vehical.VehicalNumber);

            return(id);
        }
        public bool ParkVehical(ParkedVehical vehical)
        {
            List oList = this.ClientContext.Web.Lists.GetByTitle("ParkingInfo");
            ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
            ListItem oListItem = oList.AddItem(itemCreateInfo);

            oListItem["Title"]           = vehical.VehicalNumber;
            oListItem["ParkingLotSpace"] = vehical.ParkingLot;
            oListItem["ParkingLot"]      = Services.UserService.CurrentUser.ParkingLot;
            oListItem["EnterTime"]       = DateTime.Now;
            oListItem.Update();
            this.ClientContext.ExecuteQuery();
            return(true);
        }