Esempio n. 1
0
        public BookingEventCountContract BookingEventCountFromDal(BookingEventCountData data)
        {
            var contract = new BookingEventCountContract();

            DataToContract(data, contract);

            return(contract);
        }
Esempio n. 2
0
 // transfer serialized data contract to business wcf contract
 // links:
 //  how to generate durians: https://sql2x.org
 //  docLink: http://sql2x.org/documentationLink/6140089a-d7c9-4e92-b385-f6fd91026820
 // parameters:
 //  dalBookingEventCount: from durian ansi sql select statement
 //  dataContract: business wcf contract
 public void DataToContract(BookingEventCountData dalBookingEventCount, BookingEventCountContract dataContract)
 {
     dataContract.BookingContactCount              = dalBookingEventCount.BookingContactCount;
     dataContract.BookingIdentifierCount           = dalBookingEventCount.BookingIdentifierCount;
     dataContract.BookingServiceRequestCount       = dalBookingEventCount.BookingServiceRequestCount;
     dataContract.BookingEventCount                = dalBookingEventCount.BookingEventCount;
     dataContract.BookingFlightSegmentCount        = dalBookingEventCount.BookingFlightSegmentCount;
     dataContract.BookingPassengerCount            = dalBookingEventCount.BookingPassengerCount;
     dataContract.FinancialBookingTransactionCount = dalBookingEventCount.FinancialBookingTransactionCount;
     dataContract.FinancialPaymentCount            = dalBookingEventCount.FinancialPaymentCount;
     dataContract.ConfirmedFlag = dalBookingEventCount.ConfirmedFlag;
 }