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)); }