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