public ActionResult getProperty(Guid id) { BusinessLayer.PatientsBL patient = new BusinessLayer.PatientsBL(); IQueryable <Common.Property> p = patient.GetProperties(id); List <SelectListItem> PropertyList = (from property in patient.GetProperties(id).ToList() select new SelectListItem() { Text = property.PropertyName, Value = property.PropertyId.ToString() }).ToList(); //ViewBag.Locality = LocalityList; return(Json(PropertyList, JsonRequestBehavior.AllowGet)); }