Ejemplo n.º 1
0
        public IActionResult Index()
        {
            _logger.LogInformation("Start Web UI Request Read All");
            var result = _weatherForecastRepository.GetAllAsync().Result;

            return(View(result));
        }
        public async Task <ActionResult> Index()
        {
            var forecasts = await _repo.GetAllAsync();

            return(View(forecasts.ToList()));
        }