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