Example #1
0
        public virtual JsonResult Category(long? categoryId)
        {
            ProviderCategory aCategory = new ProviderCategory();
            if (!categoryId.HasValue || !aCategory.Load(categoryId.Value))
            {
                aCategory = ProviderCategory.Root;
            }

            return Json(new CategoryVM(aCategory), JsonRequestBehavior.AllowGet);
        }