Ejemplo n.º 1
0
 private OrderPatchDTO ConvertToPatchDTO(OrderPatchDTOUnion order)
 {
     return(new OrderPatchDTO()
     {
         CommentUpdateTime = order.CommentUpdateTime != null ? order.CommentUpdateTime : DateTime.MinValue,
         CommentContent = order.CommentContent != null ? order.CommentContent : "-",
         OrderState = order.OrderState,
     });
 }
Ejemplo n.º 2
0
 private OrderPatchDetailsDTO ConvertToPatchDetailsDTO(OrderPatchDTOUnion order)
 {
     return(new OrderPatchDetailsDTO()
     {
         Size = order.Size,
         Amount = order.Amount,
         Deadline = order.Deadline,
         Pattern = order.Pattern,
         OrderComment = order.OrderComment,
         OrderTime = order.OrderTime,
         Fonts = order.Fonts,
         Type = order.Type,
         PatternPlace = order.PatternPlace
     });
 }