public static Boolean SavePasien(PinereDataContext dc, string User, int DataAirlineId, Pasien ps, out string PasienId) { PasienId = string.Empty; try { var Pasien = (from a in dc.InsertPasien(ps.Id, DataAirlineId, ps.Nama, GetDateFromStringDate(ps.TanggalLahir), ps.Kelamin, ps.Pekerjaan, ps.Passport, ps.KTP, ps.Alamat, ps.NamaAirline, ps.NomorPenerbangan, ps.NomorTelpon, DateTime.Now, User) select a).SingleOrDefault(); PasienId = Pasien.PasienId.ToString(); return(true); } catch (Exception e) { throw new Exception(e.Message); } }