public IHttpActionResult ConceptsAll(ConceptsFilterLiteViewModel filter) { ConceptBL oConceptBL = new ConceptBL(); //ConceptFiltersViewModel ofilters = new ConceptFiltersViewModel(); PeriodBL oPeriodBL = new PeriodBL(); PeriodViewModel oPeriod = oPeriodBL.ObtenerVigente(); filter.period_id = oPeriod.period_id; List <ConceptLiteViewModel> lista = oConceptBL.ObtenerMovil(filter); var path = ConfigurationManager.AppSettings["pdf.path"]; lista.ForEach(a => a.pdf_file = a.pdf_file.Replace(path, "")); var result = new { // this is what datatables wants sending back data = lista }; return(Ok(result)); }
public List <ConceptLiteViewModel> ObtenerMovil(ConceptsFilterLiteViewModel filter) { return(oRepositorio.ObtenerMovil(filter)); }