comments
This commit is contained in:
parent
17ecfa132d
commit
57255e0aec
@ -101,7 +101,8 @@ namespace DtoImporterService
|
|||||||
// absence of categories is also possible
|
// absence of categories is also possible
|
||||||
|
|
||||||
// CATEGORY HACK: only use the 1st 2 categories
|
// CATEGORY HACK: only use the 1st 2 categories
|
||||||
// (real impl: var lastCategory = item.Categories.LastOrDefault()?.CategoryId ?? "";)
|
// after we support full arbitrary-depth category trees and multiple categories per book, the real impl will be something like this
|
||||||
|
// var lastCategory = item.Categories.LastOrDefault()?.CategoryId ?? "";
|
||||||
var lastCategory
|
var lastCategory
|
||||||
= item.Categories.Length == 0 ? ""
|
= item.Categories.Length == 0 ? ""
|
||||||
: item.Categories.Length == 1 ? item.Categories[0].CategoryId
|
: item.Categories.Length == 1 ? item.Categories[0].CategoryId
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user