diff --git a/CHANGELOG.md b/CHANGELOG.md index 340b9bd..7a1e8f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning]. - / +## [1.0.3] - 2024-10-10 + +### Changed + +- Deparment list now is returning the information about Capital city for each record + ## [1.0.2] - 2024-10-10 ### Added diff --git a/api/Const/Version.cs b/api/Const/Version.cs index 7358778..6ce02ca 100644 --- a/api/Const/Version.cs +++ b/api/Const/Version.cs @@ -1,4 +1,4 @@ public class Version { - public const string CurrentVersion = "1.0.2"; + public const string CurrentVersion = "1.0.3"; } diff --git a/api/Routes/DepartmentRoutes.cs b/api/Routes/DepartmentRoutes.cs index 044f7bd..d414219 100644 --- a/api/Routes/DepartmentRoutes.cs +++ b/api/Routes/DepartmentRoutes.cs @@ -14,7 +14,7 @@ public static void RegisterDepartmentAPI(WebApplication app) app.MapGet(API_DEPARTMENT_ROUTE_COMPLETE, async (DBContext db) => { - var listDeparments = await db.Departments.ToListAsync(); + var listDeparments = await db.Departments.Include(p=> p.CityCapital).ToListAsync(); return Results.Ok(listDeparments); }) .Produces>(200)