Ejemplo n.º 1
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var model = await _commonViewModelService.PrepareCurrencySelector();

            if (model.AvailableCurrencies.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }
Ejemplo n.º 2
0
        public IViewComponentResult Invoke()
        {
            var model = _commonViewModelService.PrepareCurrencySelector();

            if (model.AvailableCurrencies.Count == 1)
            {
                Content("");
            }

            return(View(model));
        }