コード例 #1
0
        public async Task <IActionResult> AddGameServer([FromBody] GameServerRequest gameServerRequest)
        {
            var createdGameServer = await _shopService.CreateGameServerAsync(gameServerRequest, HttpContext.GetUserId());

            if (!createdGameServer.Success)
            {
                return(BadRequest(createdGameServer.Errors));
            }

            return(Ok(createdGameServer.Response));
        }