Exemplo n.º 1
0
 public HttpResponseMessage Listar()
 {
     try
     {
         var response = _service.ListarResponse();
         return(Response(response, EnumStatusObjeto.Sucesso));
     }
     catch (Exception e)
     {
         return(Request.CreateErrorResponse(HttpStatusCode.InternalServerError, e.Message));
     }
 }