public static List <CorteCajaDTO> BuscarCorteCaja(CorteCajaModel model, string tkn) { AgenteServicio agenteServico = new AgenteServicio(); agenteServico.BuscarRepoCorteCaja(model, tkn); return(agenteServico._ListaCorteCaja); }
public ActionResult CorteCaja(CorteCajaModel 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.Fecha.Equals(DateTime.MinValue)) { ViewData["Reporte"] = TiposReporteConst.CorteCaja; TempData["DataSource"] = ReporteServicio.BuscarCorteCaja(model, tkn); } return(View(model)); }