Esempio n. 1
0
        public async Task <ActionResult> Change()
        {
            var query  = new GetSupportedLanguagesQuery();
            var result = await Send(query);

            return(ToActionResult(result));
        }
Esempio n. 2
0
            public async Task <Result <LanguageVM[]> > Handle(GetSupportedLanguagesQuery request, CancellationToken cancellationToken)
            {
                await Task.Yield();

                return(_cultureService.GetSupportedLanguages().Values
                       .Select(s => new LanguageVM(s.key, s.caption))
                       .ToArray());
            }