Merge branch 'API' of https://codefirst.iut.uca.fr/git/bastien.ollier/LOL into API
continuous-integration/drone/push Build is failing Details

pull/1/head
nathan boileau 2 years ago
commit 99a60a7c68

@ -57,9 +57,11 @@ namespace apiLOL.Controllers
} }
// DELETE api/<ControllerLol>/5 // DELETE api/<ControllerLol>/5
[HttpDelete("{id}")] [HttpDelete("{name}")]
public void Delete(int id) public async void Delete(String name)
{ {
var champ = (await data.ChampionsMgr.GetItemsByName(name, 0, 1)).First();
data.ChampionsMgr.DeleteItem(champ);
} }
} }

Loading…
Cancel
Save