Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        ///////CustomerToTypes
        public static CustomerToType Map_customerToTypeDto_ToType(CustomerToTypeDto customerToTypeDto)
        {
            var customerTotype = new CustomerToType()
            {
                CustomerId     = customerToTypeDto.CustomerId,
                CustomerTypeId = customerToTypeDto.CustomerTypeId
            };

            return(customerTotype);
        }