Ejemplo n.º 1
0
        public async Task <IActionResult> Index()
        {
            IEnumerable <Tank> tanks = await _repository.GetAllTanksAsync();

            TankIndexViewModel model = new TankIndexViewModel()
            {
                Tanks = tanks
            };

            ViewBag.Title = _stringLocalizer["Tanks"].ToString();
            return(View(model));
        }