Esempio n. 1
0
        public async void GetAll()
        {
            var currecies = await _service.GetAllCurrencies();

            foreach (var item in currecies)
            {
                Console.WriteLine(item);
            }
        }
        public async Task <IActionResult> Get()
        {
            try
            {
                var resultado = await _services.GetAllCurrencies();

                return(Ok(resultado));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }