// GET api/leads/{$prospectId}/ // FEATURE: Visualizar lead public HttpResponseMessage Get(string id, string sid) { if (Authentication.VerifyToken("1")) { try { var operationResult = LeadIntegration.View(Authentication.GetRepresentative("1"), HttpUtility.UrlDecode(id)); if (operationResult == null) { return(Request.CreateResponse(HttpStatusCode.NotFound)); } else { return(Request.CreateResponse(HttpStatusCode.OK, operationResult)); } } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.BadRequest, ex.Message)); } } else { return(Request.CreateResponse(HttpStatusCode.Forbidden)); } }