Exemplo n.º 1
0
 public IActionResult CreateOptionForRoom([FromRoute] int roomId, [FromBody] ActionOutcomeInfoDto dto, [FromRoute] int gameId)
 {
     try
     {
         var actionOutcome = repo.CreateActionOutcome(roomId, dto, gameId);
         return(StatusCode(204, roomOptionResponses.GetCreateRoomOptionSuccess(actionOutcome)));
     }
     catch (Exception)
     {
         return(StatusCode(500, ErrorResponse.ServerError));
     }
 }