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