예제 #1
0
        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));
        }
예제 #2
0
        public static RespuestaDTO ActualizarHistorico(HistoricoVentaModel dto, string tkn)
        {
            AgenteServicio agenteServico = new AgenteServicio();

            agenteServico.ActualizarHistorico(dto, tkn);
            return(agenteServico._RespuestaDTO);
        }
예제 #3
0
 public ActionResult Modificar(int?id, HistoricoVentaModel model = null)
 {
     return(RedirectToAction("Index"));
 }