コード例 #1
0
        public JsonResult GetAttributeCategory()
        {
            DropDownListsRepository modelRepo = new DropDownListsRepository();

            return Json(modelRepo.ReadAttributeCategory().OrderBy(o => o.Name).Select(c => new { AttributeHeaderID = c.ID, AttributeCategory = c.Name }).OrderBy(o => o.AttributeCategory), JsonRequestBehavior.AllowGet);
        }