Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ProductToOrderConverter : ITypeConverter<Product, OrderDetail>
- {
- public OrderDetail Convert(ResolutionContext context)
- {
- if (context.IsSourceValueNull) return null;
- var p = context.SourceValue as Product;
- return new OrderDetail()
- {
- // ...
- };
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement