예제 #1
0
        public JsonResult GetBrandssByCategoryId(int?categoryId)
        {
            var categories = brandManager.GetBrandssByCategoryId(categoryId).Select(c => new
            {
                c.Id,
                c.Name,
                c.Code,
                c.CategoryId,
                c.Description
            });

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