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