Once we have access to the GpioOutputPin, we can change the state of the LED; to turn the LED on, we just need to write the following:
pin.Write(GpioPinValue.Low);
If we want to turn the LED off, we need to write this:
pin.Write(GpioPinValue.High);