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); }