public JsonResult GetBusinessPartnerType() { DropDownListsRepository modelRepo = new DropDownListsRepository(); return Json(modelRepo.GetBusinessPartnerType().OrderBy(o => o.Name).Select(c => new { BusinessPartnerTypeID = c.ID, BusinessPartnerType = c.Name }).OrderBy(o => o.BusinessPartnerType), JsonRequestBehavior.AllowGet); }