public void AddController(HttpContext context)
        {
            int id = 0;

            if (context.Request.Payload.Length > 0)
            {
                string     json       = context.Request.Payload.ReadAll();
                Controller controller = JsonSerializer.DeserializeJson <Controller>(json);
                if (controller == null)
                {
                    throw new BadRequestException(BadRequestException.MSG_INVALID_PAYLOAD);
                }
                id = _controllerHandler.CreateController(controller.Name, controller.LedCount);
            }
            else
            {
                //create controller with name = "" and Led Count = 0
                id = _controllerHandler.CreateController("", 0);
            }

            Controller result     = _controllerHandler.GetController(id);
            string     jsonResult = JsonSerializer.SerializeJson(result);

            context.Response.Headers.Set("Location", ApiBase.API_V1 + "/controllers/" + id);
            context.Response.Payload.Write(jsonResult);
            context.Response.Status = HttpStatus.Created;
        }