public static ParkingLotInfo ModifyConfiguration(ParkingLotService service) { ParkingLotInfo parkingLot = new ParkingLotInfo(); Console.WriteLine("Which record you wants to modify"); Console.Write("Name of the parking lot : "); var id = service.HasParkingLot(Console.ReadLine()); if (id != 0) { parkingLot.ParkingLotId = id; Console.Write("Enter vehical type : "); var parkingLotInfoId = service.GetParkingLotId(Console.ReadLine()); if (parkingLotInfoId != 0) { parkingLot.Id = parkingLotInfoId; Console.Write("Rate : "); Int32.TryParse(Console.ReadLine(), out int rate); parkingLot.Rate = rate; Console.Write("Space : "); Int32.TryParse(Console.ReadLine(), out int space); parkingLot.Space = space; return(parkingLot); } } return(null); }