Exemplo n.º 1
0
 public async Task <IActionResult> Delete(string id)
 => await Task.Run(() => Ok(new { player = _repo.DeletePlayer(ExtensionUtility.ParseID(id)) }));
Exemplo n.º 2
0
 public async Task <IActionResult> Put(string id, [FromBody] Player player)
 => await Task.Run(() => Ok(new { player = _repo.UpdatePlayer(ExtensionUtility.ParseID(id), player) }));