diff --git a/Sources/API/Controllers/ChampionController.cs b/Sources/API/Controllers/ChampionController.cs index a7448a6..a8b40e0 100644 --- a/Sources/API/Controllers/ChampionController.cs +++ b/Sources/API/Controllers/ChampionController.cs @@ -44,7 +44,7 @@ namespace API.Controllers } */ - /**** Méthodes GET ****/ + /**** Méthodes GET **** [HttpGet] public async Task> GetChamps() { @@ -90,7 +90,7 @@ namespace API.Controllers return BadRequest(); } - /**** Méthodes POST ****/ + /**** Méthodes POST **** [HttpPost("Ajouter/{nom}")] public async Task PostChampName(string nom) { @@ -122,7 +122,7 @@ namespace API.Controllers } - /**** Méthodes DELETE ****/ + /**** Méthodes DELETE **** [HttpDelete("Supprimer/{id}")] public async Task DeleteChamp(int id) @@ -140,7 +140,7 @@ namespace API.Controllers - /**** Méthodes PUT ****/ + /**** Méthodes PUT **** [HttpPut("Modifier/{nom}")]// CA C4EST PAS FINI public async Task PutChampName(string nom) @@ -159,7 +159,7 @@ namespace API.Controllers Champion caNouv = cNouv.ToModel(); await stub.ChampionsMgr.UpdateItem(ca, caNouv); return CreatedAtAction(nameof(GetChampById), new { id = stub.ChampionsMgr.GetItems(0, stub.ChampionsMgr.GetNbItems().Result).Result.ToList().IndexOf(ca) }, ca); - } + }*/ } } diff --git a/Sources/API/Mapping/ChampionMapper.cs b/Sources/API/Mapping/ChampionMapper.cs index fde70fb..b8babf5 100644 --- a/Sources/API/Mapping/ChampionMapper.cs +++ b/Sources/API/Mapping/ChampionMapper.cs @@ -5,7 +5,7 @@ using System.Collections.ObjectModel; namespace API.Mapping { public static class ChampionMapper - { + {/* public static ChampionDto ToDto(this Champion champion) { if (champion == null) @@ -53,6 +53,6 @@ namespace API.Mapping Icon = skinDto.Icon, Price = skinDto.Price } - } + }*/ } } diff --git a/Sources/ConsoleAPI/ConsoleAPI.csproj b/Sources/ConsoleAPI/ConsoleAPI.csproj index 86c2bf5..2a498f3 100644 --- a/Sources/ConsoleAPI/ConsoleAPI.csproj +++ b/Sources/ConsoleAPI/ConsoleAPI.csproj @@ -9,10 +9,7 @@ + - - - - - + diff --git a/Sources/EFlib/SQLiteContext.cs b/Sources/EFlib/SQLiteContext.cs index 50a4b47..362733c 100644 --- a/Sources/EFlib/SQLiteContext.cs +++ b/Sources/EFlib/SQLiteContext.cs @@ -23,7 +23,10 @@ namespace EFlib { } protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) { - optionsBuilder.UseSqlite($"Data Source=projet.dbloulou.db"); + if (!optionsBuilder.IsConfigured) + { + optionsBuilder.UseSqlite($"Data Source=projet.dbloulou.db"); + } } }