Skip to content

Commit

Permalink
Added Dtos
Browse files Browse the repository at this point in the history
  • Loading branch information
AslamNazeerShaikh committed Oct 5, 2024
1 parent 8cc8db2 commit 3b2eb43
Showing 3 changed files with 27 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/TravelManagement.Application/DTOs/TourDto.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TravelManagement.Application.Dtos
{
public class TourDto
{
public int Id { get; set; }
public string? Name { get; set; } = string.Empty;
public string? FromLocation { get; set; } = string.Empty;
public string? ToLocation { get; set; } = string.Empty;
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public decimal Price { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -10,4 +10,9 @@
<PackageReference Include="MediatR" Version="12.4.1" />
</ItemGroup>

<ItemGroup>
<Folder Include="Commands\" />
<Folder Include="Queries\" />
</ItemGroup>

</Project>
3 changes: 3 additions & 0 deletions src/TravelManagement.Domain/Entities/Tour.cs
Original file line number Diff line number Diff line change
@@ -10,7 +10,10 @@ public class Tour
{
public int Id { get; set; }
public string? Name { get; set; } = string.Empty;
public string? FromLocation { get; set; } = string.Empty;
public string? ToLocation { get; set; } = string.Empty;
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public decimal Price { get; set; }
}
}

0 comments on commit 3b2eb43

Please sign in to comment.