Exemplo n.º 1
0
        public ActionResult Index(IndexViewModel model)
        {
            try
            {
                if (!ModelState.IsValid)
                {
                    //model.CargarDatos(CargarDatosContext(), model.FacturaId);
                    TryUpdateModel(model);
                    return(View(model));
                }

                var newModel = new IndexViewModel();
                model.CargarDatos();

                int val = model.BitsX;
            }
            catch (Exception ex)
            {
                TryUpdateModel(model);
            }

            return(View(model));
        }