public int Insert(PassengerOrdersItineraries PassengerOrderItinerary, int UserIdentity)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             db.PassengerOrdersItineraries.Add(PassengerOrderItinerary);
             db.SaveChanges(UserIdentity);
             return(PassengerOrderItinerary.PassengerOrdersItineraryID);
         }
     }
     catch
     {
         throw;
     }
 }
 public int Delete(int PassengerOrderItineraryID, int UserIdentity)
 {
     try
     {
         using (var db = new HCMEntities())
         {
             PassengerOrdersItineraries Obj = db.PassengerOrdersItineraries.SingleOrDefault(x => x.PassengerOrdersItineraryID.Equals(PassengerOrderItineraryID));
             db.PassengerOrdersItineraries.Remove(Obj);
             return(db.SaveChanges(UserIdentity));
         }
     }
     catch
     {
         throw;
     }
 }