public async Task <IActionResult> EditTank(long id)
        {
            Tank tank = await _repository.GetTankByIdAsync(id);

            if (tank != null)
            {
                TankCreateViewModel model = new TankCreateViewModel()
                {
                    Sections = await _repository.GetSectionsAsync(),
                    Tank     = tank
                };
                ViewBag.Title = _stringLocalizer["Edit Tank"].ToString();
                return(View(model));
            }
            TempData["TankMessage"] = _stringLocalizer["Selected tank was missing"].ToString();
            return(RedirectToAction(nameof(Index)));
        }