Exemple #1
0
 public void SetCardCoordinates(CardCoordinatesDto model)
 {
     UpdateCardProperties(model.Id, card =>
     {
         card.X = model.X;
         card.Y = model.Y;
     });
 }
Exemple #2
0
 public IActionResult SetCardCoordinates([Required][FromBody] CardCoordinatesDto model)
 {
     _gameFieldService.SetCardCoordinates(model);
     return(Ok());
 }