Skip to content

Commit

Permalink
Merge pull request #124 from Mteheran/develop
Browse files Browse the repository at this point in the history
Adding capital information to get deparments endpoint
  • Loading branch information
Rinaplata authored Oct 11, 2024
2 parents a160468 + 70233fa commit 4336107
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/Const/Version.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public class Version
{
public const string CurrentVersion = "1.0.2";
public const string CurrentVersion = "1.0.3";
}
2 changes: 1 addition & 1 deletion api/Routes/DepartmentRoutes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<Department>>(200)
Expand Down

0 comments on commit 4336107

Please sign in to comment.