public static List <CuentasPorPagarDTO> BuscarCuentasPorPagar(CuentasPorPagarModel model, string token) { var respuestaReq = new AgenteServicio(); respuestaReq.BuscaCuentasPorPagar(model, token); return(respuestaReq._ListaCuentasPorPagar); }
public ActionResult CuentasXPagar(CuentasPorPagarModel model = null) { if (Session["StringToken"] == null) { return(RedirectToAction("Index", "Home")); } tkn = Session["StringToken"].ToString(); if (TempData["DataSource"] != null) { TempData["DataSource"] = null; } if (model != null && !model.Periodo.Equals(DateTime.MinValue)) { ViewData["Periodo"] = model.Periodo; ViewData["Reporte"] = TiposReporteConst.CuentasXCobrar; TempData["DataSource"] = ReporteServicio.BuscarCuentasPorPagar(model, tkn); } return(View(model)); }