Beispiel #1
0
        ///prøver igjen fra customerToType til dto

        public static CustomerToTypeDto MapOne(CustomerToType customerToType)
        {
            var temp = new CustomerToTypeDto()
            {
                CustomerTypeId = customerToType.CustomerTypeId,
                CustomerId     = customerToType.CustomerId
            };

            return(temp);
        }
Beispiel #2
0
        ///////CustomerToTypes
        public static CustomerToType Map_customerToTypeDto_ToType(CustomerToTypeDto customerToTypeDto)
        {
            var customerTotype = new CustomerToType()
            {
                CustomerId     = customerToTypeDto.CustomerId,
                CustomerTypeId = customerToTypeDto.CustomerTypeId
            };

            return(customerTotype);
        }