示例#1
0
        public async Task <IActionResult> RemoveUserGame([Required] string game, [Required] string gameUsername)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            GenericResponse <BooleanResponse> response = await gameBusiness.RemoveUserGame(game, gameUsername, HttpContext.GetCurrentUserId());

            return(this.GetResultFromResponse(response));
        }