Example #1
0
        public HttpResponseMessage GetAll()
        {
            var pendencias = PendenciaServices.RecuperaTodas();

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

            return(Request.CreateResponse(HttpStatusCode.OK, pendencia));
        }