diff --git a/Src/DeUrgenta.Backpack.Api/Models/BackpackItemModel.cs b/Src/DeUrgenta.Backpack.Api/Models/BackpackItemModel.cs index ae0fd2f..1866026 100644 --- a/Src/DeUrgenta.Backpack.Api/Models/BackpackItemModel.cs +++ b/Src/DeUrgenta.Backpack.Api/Models/BackpackItemModel.cs @@ -6,6 +6,7 @@ namespace DeUrgenta.Backpack.Api.Models public sealed record BackpackItemModel { public Guid Id { get; init; } + public Guid BackpackId { get; init; } public string Name { get; init; } public uint Amount { get; init; } public DateTime ExpirationDate { get; init; } diff --git a/Src/DeUrgenta.Backpack.Api/QueryHandlers/GetBackpackItemsHandler.cs b/Src/DeUrgenta.Backpack.Api/QueryHandlers/GetBackpackItemsHandler.cs index 7ce18e2..ef2e5b8 100644 --- a/Src/DeUrgenta.Backpack.Api/QueryHandlers/GetBackpackItemsHandler.cs +++ b/Src/DeUrgenta.Backpack.Api/QueryHandlers/GetBackpackItemsHandler.cs @@ -38,6 +38,7 @@ public async Task>> Handle(GetBackpackI .Select(item => new BackpackItemModel { Id = item.Id, + BackpackId = item.BackpackId, Amount = item.Amount, Name = item.Name, CategoryType = item.BackpackCategory,