/// <summary> /// Gets this instance. /// </summary> /// <returns></returns> public HttpResponseMessage Get() { var serverConfigDetails = new ConfigFileReader().GetAllServerDetailsFromConfig(); return serverConfigDetails.Any() ? Request.CreateResponse(HttpStatusCode.OK, serverConfigDetails) : Request.CreateErrorResponse(HttpStatusCode.NotFound, "No results found"); }
/// <summary> /// Gets this instance. /// </summary> /// <returns></returns> public HttpResponseMessage Get() { var serverConfigDetails = new ConfigFileReader().GetAllServerDetailsFromConfig(); return(serverConfigDetails.Any() ? Request.CreateResponse(HttpStatusCode.OK, serverConfigDetails) : Request.CreateErrorResponse(HttpStatusCode.NotFound, "No results found")); }