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, }); }
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 }); }