Пример #1
0
        public int AddDestinationAddress(DestinationAddressEntities de)
        {
            var     config = new MapperConfiguration(cfg => cfg.CreateMap <DestinationAddressEntities, tblDestination>());
            IMapper mapper = config.CreateMapper();

            tblDestination da            = mapper.Map <DestinationAddressEntities, tblDestination>(de);
            int            DestinationId = bookingRepository.AddDestinationAddress(da);

            return(DestinationId);
        }