Example #1
0
        private Response GetControllers()
        {
            if (mIsDebug)
            {
                Console.WriteLine("GET: /rest/v1/controllers");
            }

            return(Response.AsJson(ControllerDTOConverter.ToDTO(_controllerRepository.GetControllers())));
        }
Example #2
0
 private Location CreateLocation(XElement element)
 {
     return(new Location(ParseId(element), ParseName(element),
                         _repository.GetControllers(ParseControllers(element))));
 }