public static List <PetugasAirline> GetPetugasAirline(int Id) { List <PetugasAirline> PetugasAirline = new List <PetugasAirline>(); try { using (var dc = new PinereDataContext(PinereConstant.PinereConnectionString)) { PetugasAirline = (from a in dc.GetPetugasAirline(Id) select new PetugasAirline { No = a.NO.Value, Id = a.ID, IdDataAirline = a.Id_Data_Airline.Value.ToString(), Nama = a.Nama, NomorPegawai = a.Nomor_Pegawai, WargaNegara = a.Warga_Negara, Passport = a.Passport, Kelamin = a.Kelamin, }).ToList(); } } catch (Exception e) { throw new Exception(e.Message); } return(PetugasAirline); }