HostingUnit convertToHostingUnitDo(HostinhUnitXml unitXml) { HostingUnit target = new HostingUnit(); target.Diary = unitXml.Diary; target.HostingUnitName = unitXml.HostingUnitName; target.Key = unitXml.Key; target.Owner = unitXml.Owner; target.Status = unitXml.Status; return(target); }
HostinhUnitXml ConverterTioHostingUnitXml(HostingUnit unit) { HostinhUnitXml target = new HostinhUnitXml(); target.Diary = unit.Diary; target.HostingUnitName = unit.HostingUnitName; target.Key = unit.Key; target.Owner = unit.Owner; target.Status = unit.Status; return(target); }