public async Task <IActionResult> Index()
        {
            SectionIndexViewModel model = new SectionIndexViewModel()
            {
                Sections = await _repository.GetSectionsAsync()
            };

            ViewBag.Title = _stringLocalizer["Sections"].ToString();
            return(View(model));
        }
Пример #2
0
        public async Task <IActionResult> CreateTank()
        {
            TankCreateViewModel model = new TankCreateViewModel()
            {
                Sections = await _repository.GetSectionsAsync()
            };

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