//>>>for Category full path<<< internal string GetCategoryFullPathById(int id) { string CategoryFullPath = ""; Item item = itemDal.GetById(id); ItemCategory itemCategory = itemCategoryDal.GetById(item.ItemCategoryId); CategoryFullPath = itemCategory.Name; if (itemCategory.ParentId != null) { CategoryFullPath = CategoryFullPath + "," + GetCategoryParent(itemCategory.ParentId); } return(CategoryFullPath); }
internal ItemCategory GetById(int?id) { ItemCategory itemCategory = itemCategoryDal.GetById(id); return(itemCategory); }