diff --git a/02_ProjectOrientedSessions/Session04/Session04.md b/02_ProjectOrientedSessions/Session04/Session04.md
index 7b59db6..1c084fb 100644
--- a/02_ProjectOrientedSessions/Session04/Session04.md
+++ b/02_ProjectOrientedSessions/Session04/Session04.md
@@ -6,7 +6,7 @@ https://chatgpt.com/share/67f18460-1c1c-8010-bc57-9f3b683ec87a
- [ ] Â Create the feature/transportation-search branch based on develop
-
+
# DTO
In order to develop transportation search flow, three DTOs need to be created in the application layer.
@@ -32,6 +32,7 @@ public class CityDto
```cs
public class TransportationSearchRequestDto
{
+ public short? VehicleTypeId { get; init; }
public int? FromCityId { get; init; }
public int? ToCityId { get; init; }
public DateTime? StartDate { get; init; }
@@ -71,6 +72,7 @@ TransportationRepositories
public interface ITransportationRepository : IRepository
{
Task> SearchTransportationsAsync(
+ short? vehicleTypeId,
int? fromCityId,
int? toCityId,
DateTime? startDate,
@@ -82,15 +84,18 @@ public interface ITransportationRepository : IRepository
📂 Suggested Folder: Infrastructure/Services/Services/TransportationRepositories
```cs
public async Task> SearchTransportationsAsync(
+ short? vehicleTypeId,
int? fromCityId, int? toCityId,
DateTime? startDate, DateTime? endDate)
{
var query = DbContext.Transportations
+ .Include(x => x.Vehicle)
.Include(x => x.FromLocation).ThenInclude(x => x.City)
.Include(x => x.ToLocation).ThenInclude(x => x.City)
.Include(x => x.Company)
.AsQueryable();
-
+ query = query.Where(x => vehicleTypeId == null || x.Vehicle.VehicleTypeId == vehicleTypeId.Value);
+
query = query.Where
(x => fromCityId == null || x.FromLocation.CityId == fromCityId.Value);
diff --git a/02_ProjectOrientedSessions/Session05/Session05.md b/02_ProjectOrientedSessions/Session05/Session05.md
new file mode 100644
index 0000000..f1787c8
--- /dev/null
+++ b/02_ProjectOrientedSessions/Session05/Session05.md
@@ -0,0 +1,25 @@
+
+# Creating a project (Vite)
+
+# CORS
+
+# Folder Structure
+
+# Installing packages
+uuid
+react-router-dom
+axios
+
+mobx
+redux?
+# Models for City / TransportationSearchResult
+
+# axios and API calls
+
+# Store?
+# Components
+# Pages
+# Routing
+
+
+