Beispiel #1
0
        public JsonResult GetByCategoryId(int?CategoryId)
        {
            if (CategoryId == null)
            {
                return(null);
            }
            var subCategory = _subCategoryManager.GetByCategoryId(CategoryId).Select
                              (
                c => new { c.Id, c.Name, c.Code, c.CategoryId }
                              );

            return(Json(subCategory, JsonRequestBehavior.AllowGet));
        }