Beispiel #1
0
        // GET: EstadoCuenta
        public ActionResult Index()
        {
            try
            {
                var response = _ServicioMiDepa.ObtenerIndexEstadoCuenta();

                var model = new EstadoCuentaGridViewModel(response);

                return View(model);
            }
            catch (Exception)
            {
                throw;
            }
        }
Beispiel #2
0
        public async Task<ActionResult> ListarDatosEstadoCuenta(string id)
        {
            try
            {
                var datosSesion = SesionModel.DatosSesion;
                //Invocamos al servicio
                var response = await _ServicioMiDepa.ListarDatosEstadoCuentaPorCampaniaAsync((int)datosSesion.Usuario.DepaId, id);

                //Construimos el modelo
                var model = new EstadoCuentaGridViewModel(response);

                //Retornamos vista con modelo
                return Json(model, JsonRequestBehavior.AllowGet);
            }
            catch (Exception)
            {
                throw;
            }
        }