diff --git a/Sources/API/API.csproj b/Sources/API/API.csproj
new file mode 100644
index 0000000..60bf9ea
--- /dev/null
+++ b/Sources/API/API.csproj
@@ -0,0 +1,13 @@
+
+
+
+ net6.0
+ enable
+ enable
+
+
+
+
+
+
+
diff --git a/Sources/API/Controllers/WeatherForecastController.cs b/Sources/API/Controllers/WeatherForecastController.cs
new file mode 100644
index 0000000..4d0175d
--- /dev/null
+++ b/Sources/API/Controllers/WeatherForecastController.cs
@@ -0,0 +1,33 @@
+using Microsoft.AspNetCore.Mvc;
+
+namespace API.Controllers
+{
+ [ApiController]
+ [Route("[controller]")]
+ public class WeatherForecastController : ControllerBase
+ {
+ private static readonly string[] Summaries = new[]
+ {
+ "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
+ };
+
+ private readonly ILogger _logger;
+
+ public WeatherForecastController(ILogger logger)
+ {
+ _logger = logger;
+ }
+
+ [HttpGet(Name = "GetWeatherForecast")]
+ public IEnumerable Get()
+ {
+ return Enumerable.Range(1, 5).Select(index => new WeatherForecast
+ {
+ Date = DateTime.Now.AddDays(index),
+ TemperatureC = Random.Shared.Next(-20, 55),
+ Summary = Summaries[Random.Shared.Next(Summaries.Length)]
+ })
+ .ToArray();
+ }
+ }
+}
\ No newline at end of file
diff --git a/Sources/API/Program.cs b/Sources/API/Program.cs
new file mode 100644
index 0000000..48863a6
--- /dev/null
+++ b/Sources/API/Program.cs
@@ -0,0 +1,25 @@
+var builder = WebApplication.CreateBuilder(args);
+
+// Add services to the container.
+
+builder.Services.AddControllers();
+// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
+builder.Services.AddEndpointsApiExplorer();
+builder.Services.AddSwaggerGen();
+
+var app = builder.Build();
+
+// Configure the HTTP request pipeline.
+if (app.Environment.IsDevelopment())
+{
+ app.UseSwagger();
+ app.UseSwaggerUI();
+}
+
+app.UseHttpsRedirection();
+
+app.UseAuthorization();
+
+app.MapControllers();
+
+app.Run();
diff --git a/Sources/API/Properties/launchSettings.json b/Sources/API/Properties/launchSettings.json
new file mode 100644
index 0000000..c49b876
--- /dev/null
+++ b/Sources/API/Properties/launchSettings.json
@@ -0,0 +1,31 @@
+{
+ "$schema": "https://json.schemastore.org/launchsettings.json",
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:44020",
+ "sslPort": 44337
+ }
+ },
+ "profiles": {
+ "API": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "applicationUrl": "https://localhost:7175;http://localhost:5048",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/Sources/API/WeatherForecast.cs b/Sources/API/WeatherForecast.cs
new file mode 100644
index 0000000..5db3e47
--- /dev/null
+++ b/Sources/API/WeatherForecast.cs
@@ -0,0 +1,13 @@
+namespace API
+{
+ public class WeatherForecast
+ {
+ public DateTime Date { get; set; }
+
+ public int TemperatureC { get; set; }
+
+ public int TemperatureF => 32 + (int)(TemperatureC / 0.5556);
+
+ public string? Summary { get; set; }
+ }
+}
\ No newline at end of file
diff --git a/Sources/API/appsettings.Development.json b/Sources/API/appsettings.Development.json
new file mode 100644
index 0000000..0c208ae
--- /dev/null
+++ b/Sources/API/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/Sources/API/appsettings.json b/Sources/API/appsettings.json
new file mode 100644
index 0000000..10f68b8
--- /dev/null
+++ b/Sources/API/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/Sources/EFlib/projet.dbloulou.db-shm b/Sources/EFlib/projet.dbloulou.db-shm
deleted file mode 100644
index fe9ac28..0000000
Binary files a/Sources/EFlib/projet.dbloulou.db-shm and /dev/null differ
diff --git a/Sources/EFlib/projet.dbloulou.db-wal b/Sources/EFlib/projet.dbloulou.db-wal
deleted file mode 100644
index e69de29..0000000
diff --git a/Sources/LeagueOfLegends.sln b/Sources/LeagueOfLegends.sln
index e5c3922..ca5cd9f 100644
--- a/Sources/LeagueOfLegends.sln
+++ b/Sources/LeagueOfLegends.sln
@@ -15,7 +15,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Stub", "Stub", "{2C607793-B
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubLib", "StubLib\StubLib.csproj", "{B01D7EF2-2D64-409A-A29A-61FB7BB7A9DB}"
EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EFlib", "EFlib\EFlib.csproj", "{1364BFA7-D1A3-460B-8AEB-7E3A9AA6084A}"
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "EFlib", "EFlib\EFlib.csproj", "{1364BFA7-D1A3-460B-8AEB-7E3A9AA6084A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleDB", "ConsoleDB\ConsoleDB.csproj", "{217F65FC-D3AA-4FF9-ABE1-E7ACBED49AF5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -43,6 +45,10 @@ Global
{1364BFA7-D1A3-460B-8AEB-7E3A9AA6084A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1364BFA7-D1A3-460B-8AEB-7E3A9AA6084A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1364BFA7-D1A3-460B-8AEB-7E3A9AA6084A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {217F65FC-D3AA-4FF9-ABE1-E7ACBED49AF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {217F65FC-D3AA-4FF9-ABE1-E7ACBED49AF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {217F65FC-D3AA-4FF9-ABE1-E7ACBED49AF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {217F65FC-D3AA-4FF9-ABE1-E7ACBED49AF5}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE