Пример #1
0
        public ActionResult ApplyDetail(long id)
        {
            var model      = _iShopService.GetBusinessCategoriesApplyInfo(id);
            var details    = _iShopService.GetBusinessCategoriesApplyDetails(id);
            var categories = CategoryApplication.GetCategories();

            foreach (var item in details)
            {
                var path = CategoryApplication.GetCategoryPath(categories, item.CategoryId);
                item.CatePath = string.Join(">", path.Select(p => p.Name));
            }
            ViewBag.Details = details;
            return(View(model));
        }