public ActionResult Index(int?page, HistoricoVentaModel model = null) { if (Session["StringToken"] == null) { return(RedirectToAction("Index", "Home")); } tkn = Session["StringToken"].ToString(); if (TempData["RespuestaDTO"] != null) { var Respuesta = (RespuestaDTO)TempData["RespuestaDTO"]; if (Respuesta.Exito) { ViewBag.Msj = Respuesta.Mensaje; } else { ViewBag.MensajeError = Validar(Respuesta); } } listPreCarga = (List <HistoricoVentaModel>)TempData["HistoricoVentas"]; TempData["HistoricoVentas"] = listPreCarga; ViewBag.HistoricoVentas = listPreCarga; return(View(model)); }
public static RespuestaDTO ActualizarHistorico(HistoricoVentaModel dto, string tkn) { AgenteServicio agenteServico = new AgenteServicio(); agenteServico.ActualizarHistorico(dto, tkn); return(agenteServico._RespuestaDTO); }
public ActionResult Modificar(int?id, HistoricoVentaModel model = null) { return(RedirectToAction("Index")); }