Exemplo n.º 1
0
        public HttpResponseMessage Get(int id)
        {
            var tblofertas = OfertasRepository.GetOferta(id);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, tblofertas);

            return(response);
        }
Exemplo n.º 2
0
        public HttpResponseMessage Get(string name)
        {
            var tblofertas = OfertasRepository.SearchOfertasByName(name);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, tblofertas);

            return(response);
        }
Exemplo n.º 3
0
        public HttpResponseMessage Get()
        {
            var tblofertas = OfertasRepository.GetAllOfertas();

            Console.Write(tblofertas.ToString());
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, tblofertas);

            return(response);
        }
Exemplo n.º 4
0
        public HttpResponseMessage Get(string titulo,
                                       string sueldoInicio, string sueldoFin, string fechaInicioOferta,
                                       string fechaFinOferta, string cveEmpresa, string cveTipoEmpleo,
                                       string cveSubcategoria, string cveCategoria, string cveMunicipio, string cveEstado)
        {
            var tblofertas = OfertasRepository.BusquedaOfertas(titulo, sueldoInicio,
                                                               sueldoFin, fechaInicioOferta, fechaFinOferta, cveEmpresa, cveTipoEmpleo,
                                                               cveSubcategoria, cveCategoria, cveMunicipio, cveEstado);
            HttpResponseMessage response = Request.CreateResponse(HttpStatusCode.OK, tblofertas);

            return(response);
        }