public ActionResult Create(GameResultViewModel gameResultViewModel)
        {
            var gameResult = gameResultViewModel.ToDomain();

            try
            {
                _gameService.Create(gameResult);
                return(RedirectToAction("Details", "Tournaments", new { id = gameResultViewModel.TournamentId }));
            }
            catch (ArgumentException ex)
            {
                ModelState.AddModelError("ValidationMessage", ex.Message);
                return(View(gameResultViewModel));
            }
        }
        public ActionResult Edit(GameResultViewModel gameResultViewModel)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    var gameResult = gameResultViewModel.ToDomain();
                    _gameService.EditGameResult(gameResult);
                    return(RedirectToAction("ShowSchedule", "Tournaments", new { tournamentId = gameResultViewModel.TournamentId }));
                }
            }
            catch (MissingEntityException)
            {
                ModelState.AddModelError(string.Empty, Resources.UI.GameResultsController.GameResultWasDeleted);
            }
            catch (ArgumentException)
            {
                ModelState.AddModelError(string.Empty, Resources.UI.GameResultsController.GameResultNotEdited);
            }

            return(View(gameResultViewModel));
        }