TripBllDto.cs
1,318 bytes
| 1 | using App.Domain; |
|---|---|
| 2 | using Base.Domain; |
| 3 | |
| 4 | namespace App.BLL.DTO; |
| 5 | |
| 6 | public class TripBllDto |
| 7 | { |
| 8 | public Guid Id { get; set; } |
| 9 | public DateTime CreatedAt { get; set; } |
| 10 | public DateTime UpdatedAt { get; set; } |
| 11 | |
| 12 | public string Name { get; set; } = default!; |
| 13 | public string? Description { get; set; } |
| 14 | public string? Destination { get; set; } |
| 15 | public DateTime? StartDate { get; set; } |
| 16 | public DateTime? EndDate { get; set; } |
| 17 | public ETripStatus Status { get; set; } = ETripStatus.Active; |
| 18 | |
| 19 | public Guid DefaultCurrencyId { get; set; } |
| 20 | public CurrencyBllDto? DefaultCurrency { get; set; } |
| 21 | |
| 22 | public Guid CreatedById { get; set; } |
| 23 | public AppUserBllDto? CreatedBy { get; set; } |
| 24 | public string? CreatedByFullName => CreatedBy?.FullName; |
| 25 | public string? CreatedByEmail => CreatedBy?.Email; |
| 26 | |
| 27 | public ICollection<TripParticipantBllDto>? Participants { get; set; } |
| 28 | public ICollection<ExpenseBllDto>? Expenses { get; set; } |
| 29 | public ICollection<BudgetCategoryBllDto>? BudgetCategories { get; set; } |
| 30 | public ICollection<TripWishlistItemBllDto>? WishlistItems { get; set; } |
| 31 | public ICollection<TripPollBllDto>? Polls { get; set; } |
| 32 | public ICollection<TripInvitationBllDto>? Invitations { get; set; } |
| 33 | public ICollection<SettlementPlanBllDto>? SettlementPlans { get; set; } |
| 34 | } |
| 35 | |