예제 #1
0
        public async Task <IActionResult> CharacterAddPost(AddCharacterRequest request)
        {
            try
            {
                await gameService.AddCharacter(request.GameID, request.CharacterID, request.Name, request.Image);

                return(RedirectToAction("Home", new { request.GameID }));
            }
            catch (Exception exception)
            {
                return(GetExceptionResult(exception, request));
            }
        }