Ejemplo n.º 1
0
        //>>>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);
        }
Ejemplo n.º 2
0
        internal ItemCategory GetById(int?id)
        {
            ItemCategory itemCategory = itemCategoryDal.GetById(id);

            return(itemCategory);
        }