Thanks Paul,
I was not aware of the Command () method having the same code as the Onset i.e. OnSetLedStatus () method. I dragged another Device Interface from the template (Device 2) and looked in it's command () method code and copied and pasted it in the command() method of device1 and the build error went away.
Thanks,
Armen.