コード例 #1
0
        public async Task <ActionResult> UpdateStatus([FromBody] PlayerStatusRequest playerStatus)
        {
            try{
                Player player = (Player)HttpContext.Items["SessionPlayer"];
                await _service.ChangeUserStatus(player, playerStatus);

                return(Ok());
            }catch (Exception e) {
                this._logger.LogError(e, e.Message);
                return(StatusCode(500));
            }
        }