public async Task <IActionResult> Post([FromBody] Competitor competitor)
        {
            var script = new Script()
            {
                Id                = Guid.NewGuid()
                , UserId          = UserId
                , CompetitionName = competitor.Competition
                , ScriptFiles     = new[] { competitor.Code }
                , ScriptType      = competitor.Language
                , Name            = competitor.Alias
            };

            var message = new Messages.Add <Script>(script);

            var addedScript = await _gameService.ScriptRepository.Ask <Script>(
                message
                , TimeSpan.FromSeconds(5));

            return(Ok(MapModel(addedScript)));
        }
        public async Task <IActionResult> Put([FromBody] Competitor competitor, [FromQuery] string editedCompetitorId)
        {
            var id = Guid.Parse(editedCompetitorId);

            var script = new Script()
            {
                Id                = id
                , UserId          = UserId
                , CompetitionName = competitor.Competition
                , ScriptFiles     = new[] { competitor.Code }
                , ScriptType      = competitor.Language
                , Name            = competitor.Alias
            };

            var message = new Messages.Update <Script>(script);

            var edited = await _gameService.ScriptRepository.Ask <Script>(
                message
                , TimeSpan.FromSeconds(5));

            return(Ok(MapModel(edited)));
        }