Example #1
0
 public static Boolean SavePetugasAirline(PinereDataContext dc, int DataAirlineId, string User, PetugasAirline[] pa)
 {
     try
     {
         dc.DeletePetugasAirline(DataAirlineId);
         for (int i = 0; i < pa.Count(); i++)
         {
             dc.InsertPetugasAirline(pa[i].Id, DataAirlineId, pa[i].Nama, pa[i].NomorPegawai, pa[i].WargaNegara, pa[i].Passport,
                                     pa[i].Kelamin, DateTime.Now, User);
         }
         return(true);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }