public JsonResult GetAuthority() { DropDownListsRepository model = new DropDownListsRepository(); return Json(model.GetAuthority().OrderBy(o => o.Name).Select(c => new { AuthorityID = c.ID, Authority = c.Name }).OrderBy(o => o.AuthorityID), JsonRequestBehavior.AllowGet); }