diff --git a/Sources/API/Controllers/ChampionController.cs b/Sources/API/Controllers/ChampionController.cs index 31ee574..a39521e 100644 --- a/Sources/API/Controllers/ChampionController.cs +++ b/Sources/API/Controllers/ChampionController.cs @@ -10,32 +10,43 @@ namespace API.Controllers [Route("[controller]")] public class ChampionController : ControllerBase { - private readonly ILogger _logger; private readonly StubData data = new StubData(); - private readonly IDataManager dataManager; // Pour plus tard pour le momment c'est avec le stub - - private const string Apichampion = "api/champion"; - private readonly HttpClient _client; + // Pour plus tard pour le momment c'est avec le stub + // private readonly IDataManager dataManager; + + private readonly ILogger _logger; public ChampionController(ILogger logger) { _logger = logger; } - /* public championHttpManager(HttpClient client) - { - _client = client; - client.BaseAddress = new Uri("à chopper dans lauchSettings.json propriété du projet"); - } + /* + + private const string Apichampion = "api/champion"; + private readonly HttpClient _client; + + public championHttpManager(HttpClient client) + { + + _client = client; + client.BaseAddress = new Uri("à chopper dans lauchSettings.json propriété du projet"); + } + + public async Task> getJson() + { + var champions = await _client.GetFromJsonAsync>(); + var reponse = await _client.GetAsync("api/champion"); + return champions; + } - public async Task> getJson() + public async void addchampion(ChampionDto champion) { - var champions = await _client.GetFromJsonAsync>(); - var reponse = await _client.GetAsync("api/champion"); - return champions; - }*/ - + _clientLpostAsJsonAscync(ApiChampion, champion); + } + */ + /**** Méthodes GET ****/ [HttpGet] @@ -126,12 +137,6 @@ namespace API.Controllers await data.ChampionsMgr.AddItem(championDto.ToModel())); } - /*public async void addchampion(ChampionDto champion) - { - _clientLpostAsJsonAscync(ApiChampion, champion); - } -*/ - /**** Méthodes DELETE ****/ [HttpDelete("Supprimer/{id}")] @@ -149,7 +154,6 @@ namespace API.Controllers } - /**** Méthodes PUT ****/ [HttpPut("Modifier/{nom}")] diff --git a/Sources/API/Controllers/RuneController.cs b/Sources/API/Controllers/RuneController.cs new file mode 100644 index 0000000..9c3b717 --- /dev/null +++ b/Sources/API/Controllers/RuneController.cs @@ -0,0 +1,6 @@ +namespace API.Controllers +{ + public class RuneController + { + } +} diff --git a/Sources/API/Controllers/RunePageController.cs b/Sources/API/Controllers/RunePageController.cs new file mode 100644 index 0000000..34dde7d --- /dev/null +++ b/Sources/API/Controllers/RunePageController.cs @@ -0,0 +1,6 @@ +namespace API.Controllers +{ + public class RunePageController + { + } +} diff --git a/Sources/API/Controllers/SkillController.cs b/Sources/API/Controllers/SkillController.cs new file mode 100644 index 0000000..853575b --- /dev/null +++ b/Sources/API/Controllers/SkillController.cs @@ -0,0 +1,6 @@ +namespace API.Controllers +{ + public class SkillController + { + } +} diff --git a/Sources/API/Controllers/SkinController.cs b/Sources/API/Controllers/SkinController.cs new file mode 100644 index 0000000..3f7f919 --- /dev/null +++ b/Sources/API/Controllers/SkinController.cs @@ -0,0 +1,6 @@ +namespace API.Controllers +{ + public class SkinController + { + } +} diff --git a/Sources/API/Dto/RuneDto.cs b/Sources/API/Dto/RuneDto.cs new file mode 100644 index 0000000..b1cefc5 --- /dev/null +++ b/Sources/API/Dto/RuneDto.cs @@ -0,0 +1,6 @@ +namespace API.Dto +{ + public class RuneDto + { + } +} diff --git a/Sources/API/Dto/RunePageDto.cs b/Sources/API/Dto/RunePageDto.cs new file mode 100644 index 0000000..daf20cb --- /dev/null +++ b/Sources/API/Dto/RunePageDto.cs @@ -0,0 +1,6 @@ +namespace API.Dto +{ + public class RunePageDto + { + } +} diff --git a/Sources/API/Mapping/RuneMapper.cs b/Sources/API/Mapping/RuneMapper.cs new file mode 100644 index 0000000..5315396 --- /dev/null +++ b/Sources/API/Mapping/RuneMapper.cs @@ -0,0 +1,6 @@ +namespace API.Mapping +{ + public class RuneMapper + { + } +} diff --git a/Sources/API/Mapping/RunePageMapper.cs b/Sources/API/Mapping/RunePageMapper.cs new file mode 100644 index 0000000..3a21079 --- /dev/null +++ b/Sources/API/Mapping/RunePageMapper.cs @@ -0,0 +1,6 @@ +namespace API.Mapping +{ + public class RunePageMapper + { + } +} diff --git a/Sources/EFManager/ManagerRune.cs b/Sources/EFManager/ManagerRune.cs new file mode 100644 index 0000000..ab1d5eb --- /dev/null +++ b/Sources/EFManager/ManagerRune.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace EFManager +{ + internal class ManagerRune + { + } +}