Included navigation fields in get queries
This commit is contained in:
@@ -30,7 +30,8 @@ public static class Mappers
|
||||
AuthorId = entity.AuthorId,
|
||||
Ranking = entity.Ranking,
|
||||
Rating = entity.Rating,
|
||||
Enabled = entity.Enabled
|
||||
Enabled = entity.Enabled,
|
||||
Product = entity.Product?.ToModel(),
|
||||
};
|
||||
|
||||
public static ProductPrice ToModel(this Products.Entities.ProductPrice entity) => new()
|
||||
@@ -59,7 +60,8 @@ public static class Mappers
|
||||
ThumbnailUrls = entity.ThumbnailUrls,
|
||||
Metadata = entity.Metadata,
|
||||
Categories = entity.Categories,
|
||||
Enabled = entity.Enabled
|
||||
Enabled = entity.Enabled,
|
||||
Price = entity.Prices?.FirstOrDefault(p => p.Enabled)?.ToModel() ?? null,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user