コード例 #1
0
 public IActionResult Post(ArmyViewModel armyVM)
 {
     if (_gameService.AddArmy(armyVM))
     {
         return(Ok("Army added succesfully!"));
     }
     else
     {
         return(BadRequest("Army not added! There is already game in progress!"));
     }
 }