public async Task <IActionResult> Index() { SectionIndexViewModel model = new SectionIndexViewModel() { Sections = await _repository.GetSectionsAsync() }; ViewBag.Title = _stringLocalizer["Sections"].ToString(); return(View(model)); }
public async Task <IActionResult> CreateTank() { TankCreateViewModel model = new TankCreateViewModel() { Sections = await _repository.GetSectionsAsync() }; ViewBag.Title = _stringLocalizer["Create Tank"].ToString(); return(View(model)); }