public static Business.ContainerMetaData TranslateFromServiceToBusiness(DataContracts.ContainerMetaData serviceItem) { if (serviceItem == null) { return(null); } Business.ContainerMetaData businessItem = new Business.ContainerMetaData(); businessItem.Name = serviceItem.Name; businessItem.Value = serviceItem.Value; return(businessItem); }
public static DataContracts.ContainerMetaData TranslateFromBusinessToService(Business.ContainerMetaData businessItem) { if (businessItem == null) { return(null); } DataContracts.ContainerMetaData serviceItem = new DataContracts.ContainerMetaData(); serviceItem.Name = businessItem.Name; serviceItem.Value = businessItem.Value; return(serviceItem); }