public BrokenDeviceRoutingInfoDTO ToRoutingInfoDTO(BrokenDeviceRoutingInfo o) { var vo = new BrokenDeviceRoutingInfoDTO(); ClassCopier.Instance.Copy(o, vo); if (o.Contract != null) { vo.Contract = ToContractDTO(o.Contract); } if (o.Routings.Count > 0) { vo.Routings = ToRoutingsDTO(o.Routings); } return(vo); }
private BrokenDeviceRoutingInfo ToRoutingInfo(BrokenDeviceRoutingInfoDTO vo) { var o = new BrokenDeviceRoutingInfo(); ClassCopier.Instance.Copy(vo, o); if (vo.Contract != null) { o.Contract = ToContract(vo.Contract); } if (vo.Routings.Count > 0) { o.Routings = ToRoutings(vo.Routings); } return(o); }