// GET api/leads/ // FEATURE: Listar leads public HttpResponseMessage Get(string id) { if (Authentication.VerifyToken(id)) { try { return(Request.CreateResponse(HttpStatusCode.OK, LeadIntegration.List(Authentication.GetRepresentative(id)))); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message)); } } else { return(Request.CreateResponse(HttpStatusCode.Forbidden)); } }