public IActionResult ConfirmedAccount(int id) { var exist = _accountGameRepository.ExistById(id); if (!exist) { return(RedirectToAction(nameof(Waiting))); } if (!_accountGameRepository.AccountStateIsWaiting(id)) { return(RedirectToAction(nameof(Waiting))); } ViewBag.AccountGameId = id; var gameId = _accountGameRepository.GetGameId(id); ViewBag.Images = _gameRepository.GetImageNames(gameId); ViewBag.ImagesByCountUse = _gameRepository.GetImagesByCountUse(); return(View()); }