private Response GetControllers() { if (mIsDebug) { Console.WriteLine("GET: /rest/v1/controllers"); } return(Response.AsJson(ControllerDTOConverter.ToDTO(_controllerRepository.GetControllers()))); }
private Location CreateLocation(XElement element) { return(new Location(ParseId(element), ParseName(element), _repository.GetControllers(ParseControllers(element)))); }