public void InitializeServer()
        {
            server = new RestServer(8000, "RelayAutomation");

            server.GetContentRequestData = (method, data) =>
            {
                if (method == GetLamps)
                {
                    return(JsonConvert.SerializeObject(Lamps));
                }
                else if (method == SwitchLamp)
                {
                    SwitchCommand.Execute(null);
                    return(JsonConvert.SerializeObject(Lamps.First()));
                }

                return(String.Empty);
            };

            server.StartServer();
        }