public bool fight([FromBody] dynamic fight) { try { int challengerHP = fight.player; int opponentID = fight.opponement; int weaponID = fight.weapon; return(playerRepo.Fight(challengerHP, opponentID, weaponID)); } catch (Exception ex) { logError(ex); return(false); } }