public JsonResult GetAttributeType() { DropDownListsRepository modelRepo = new DropDownListsRepository(); return Json(modelRepo.ReadAttributeType().OrderBy(o => o.Name).Select(c => new { AttributeTypeID = c.ID, AttributeType = c.Name }).OrderBy(o => o.AttributeType), JsonRequestBehavior.AllowGet); }