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