Пример #1
0
        public HttpResponseMessage Get()
        {
            try
            {
                return(Request.CreateResponse(HttpStatusCode.OK, PessoaNegocio.listarTodos()));
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex));

                throw;
            }
        }