コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }