コード例 #1
0
        public HttpResponseMessage Get()
        {
            var list     = _service.getAll();
            var response = Request.CreateResponse(HttpStatusCode.OK);

            response.Content = new StringContent(JsonConvert.SerializeObject(list.Select(f => f as UsuariosModel)), Encoding.UTF8,
                                                 "application/json");
            return(response);
        }