public async Task <IActionResult> EditTank(TankCreateViewModel model)
        {
            if (ModelState.IsValid)
            {
                model.Tank.LastModifiedByName = User.Identity.Name;
                int result = await _repository.UpdateTankAsync(model.Tank);

                if (result == -5)
                {
                    TempData["TankMessage"] = _stringLocalizer["Nothing changed"].ToString();
                }
                else if (result == 1)
                {
                    TempData["TankMessage"] = _stringLocalizer["Tank modified successfully"].ToString();
                }
                return(RedirectToAction(nameof(Index)));
            }
            model.Sections = await _repository.GetSectionsAsync();

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