Esempio n. 1
0
        public JsonResult GetProductCategories()
        {
            var ProductCategories = _lookupServices.GetAllValidProductGroups((CurrentTenantId == 0 ? tenantId : CurrentTenantId), 12);

            if (ProductCategories.Count() <= 0 || ProductCategories == null)
            {
                return(Json(false, JsonRequestBehavior.AllowGet));
            }

            var data = (from pac in ProductCategories
                        select new
            {
                pac.ProductGroupId,
                pac.ProductGroup
            });

            return(Json(data.ToList(), JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public PartialViewResult _VerticalNavBarPartial()
        {
            var ProductCategories = _lookupServices.GetAllValidProductGroups((CurrentTenantId == 0 ? tenantId : CurrentTenantId), 12);

            return(PartialView(ProductCategories));
        }