public static async Task <HttpResponseMessage> Run(HttpRequestMessage req) { var service = new ValueServices(); var values = await service.GetValues(); return(req.CreateResponse(HttpStatusCode.OK, values)); }
// GET api/values public IEnumerable <string> Get() { var valueServices = new ValueServices(); return(valueServices.GetValues().Result); }