public ActionResult ReportePDFExtractos(string idCurso, string fechaHasta)
        {
            List <ExtractoPago> lista = InscripcionRepository.getExtractoPagos(idCurso, fechaHasta);

            lista = lista.OrderBy(x => x.Nombres).ToList();
            ExtractoReport rpt = new ExtractoReport();

            rpt.Load();
            rpt.SetDataSource(lista);
            Stream s = rpt.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);


            return(File(s, "application/pdf"));
        }
        public JsonResult PoblarGrillaExtractoPagos(DataTableAjaxPostModel model)
        {
            List <ExtractoPago> lista = new List <ExtractoPago>();

            try
            {
                lista = InscripcionRepository.getExtractoPagos(model.param1, model.param2);
            }
            catch { }


            return(Json(new
            {
                // this is what datatables wants sending back
                draw = model.draw,
                recordsTotal = lista.Count,
                recordsFiltered = lista.Count,
                data = lista
            }));
        }