//>>>for Category full path<<< internal string GetCategoryFullPathById(int id) { string categoryFullPath = ""; Inventory item = _itemDal.GetById(id); InventoryCategory itemCategory = _itemCategoryDal.GetById(item.ItemCategoryId); categoryFullPath = itemCategory.Name; //if (itemCategory.ParentId != null) //{ // categoryFullPath = categoryFullPath + "," + GetCategoryParent(itemCategory.ParentId); //} return(categoryFullPath); }
internal Inventory GetById(int?id) { Inventory inventory = _inventoryDal.GetById(id); return(inventory); }