public HttpResponseMessage GetAll() { var pendencias = PendenciaServices.RecuperaTodas(); return(Request.CreateResponse(HttpStatusCode.OK, pendencias)); }
public HttpResponseMessage Delete(int pendency) { PendenciaServices.Delete(pendency); return(Request.CreateResponse(HttpStatusCode.OK, new DescriptionMessage(HttpStatusCode.OK, "Pendency removed"))); }
public HttpResponseMessage Get(int pendency) { var pendencia = PendenciaServices.Recupera(pendency); return(Request.CreateResponse(HttpStatusCode.OK, pendencia)); }