public async Task <IActionResult> PostPlayer([FromBody] Player player) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _service.AddSync(player); return(CreatedAtAction("GetPlayer", new { id = player.PlayerId }, player)); }
public async Task <IActionResult> PostPlayer([FromBody] Player player) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } await _service.AddSync(player); return(CreatedAtAction("GetPlayer", new { id = player.PlayerId }, player)); }