Exemplo n.º 1
0
        public HttpResponseMessage GetTeste()
        {
            var serviceBuscaDeCategorias = new BuscarCategoriasService();
            var categorias = serviceBuscaDeCategorias.PesquisarCategoriasTeste();

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, categorias);
            return response;
        }
Exemplo n.º 2
0
 public async Task<HttpResponseMessage> GetCategorias()
 {
     var serviceBuscaDeCategorias = new BuscarCategoriasService();
     var categorias = await serviceBuscaDeCategorias.PesquisarCategorias();
     
     HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, categorias);
     return response;
 }
Exemplo n.º 3
0
        public async Task <HttpResponseMessage> GetCategorias()
        {
            var serviceBuscaDeCategorias = new BuscarCategoriasService();
            var categorias = await serviceBuscaDeCategorias.PesquisarCategorias();

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, categorias);

            return(response);
        }
Exemplo n.º 4
0
        public HttpResponseMessage GetTeste()
        {
            var serviceBuscaDeCategorias = new BuscarCategoriasService();
            var categorias = serviceBuscaDeCategorias.PesquisarCategoriasTeste();

            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, categorias);

            return(response);
        }