public List <dynamic> VendorsList() { VendormasterRepository vendormasterRepository = new VendormasterRepository(); var l1 = vendormasterRepository.VendormasterList().Select(i => i.Landmark + "," + i.City); return(l1.ToList <dynamic>()); }