public static List <City> GetKota() { List <City> CityList = new List <City>(); try { using (var dc = new PinereDataContext(PinereConstant.PinereConnectionString)) { CityList = (from a in dc.GetKota() select new City { Code = a.Kode_Kota, Name = a.Nama_Kota, Country = a.Negara }).ToList(); } } catch (Exception e) { throw new Exception(e.Message); } return(CityList); }