Hi,
I am trying to get a category through code. I have tried 2 different ways but i noticed that CategoryId in the databse is null which means I can not get the category by searching for the categoryId. is this normal? Shouldn’t categories have an Id?
Have tried these:
var rootCategories = _categoryService.GetChildCategories(Guid.Empty, Assortment.SystemId);
var rootCategory = rootCategories?.FirstOrDefault(c => c.Id?.Equals("Däck",
StringComparison.InvariantCultureIgnoreCase) ?? false);
and
_categoryService.Get("Däck")
Litium version: 7.2.0