// GET: EstadoCuenta public ActionResult Index() { try { var response = _ServicioMiDepa.ObtenerIndexEstadoCuenta(); var model = new EstadoCuentaGridViewModel(response); return View(model); } catch (Exception) { throw; } }
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; } }