コード例 #1
0
        public static internalDTO.Product MapFromBLL(externalDTO.Product product)
        {
            var res = product == null ? null : new internalDTO.Product
            {
                Id = product.Id,
                RouteOfAdministrationId = product.RouteOfAdministrationId,
                RouteOfAdministration   = RouteOfAdministrationMapper.MapFromBLL(product.RouteOfAdministration),
                ProductClassificationId = product.ProductClassificationId,
                ProductClassification   = ProductClassificationMapper.MapFromBLL(product.ProductClassification),
                ProductNameId           = product.ProductNameId,
                ProductName             = ProductNameMapper.MapFromBLL(product.ProductName)
            };

            return(res);
        }
コード例 #2
0
        public static internalDTO.Customs.ProductOverview MapFromBLL(externalDTO.Customs.ProductOverview product)
        {
            var res = product == null ? null : new internalDTO.Customs.ProductOverview()
            {
                Id = product.Id,
                RouteOfAdministrationId = product.RouteOfAdministrationId,
                RouteOfAdministration   = RouteOfAdministrationMapper.MapFromBLL(product.RouteOfAdministration),
                ProductClassificationId = product.ProductClassificationId,
                ProductClassification   = ProductClassificationMapper.MapFromBLL(product.ProductClassification),
                ProductNameId           = product.ProductNameId,
                ProductName             = ProductNameMapper.MapFromBLL(product.ProductName),
                ProductCompanyId        = product.ProductCompanyId,
                ProductCompany          = ProductCompanyMapper.MapFromBLL(product.ProductCompany)
            };

            return(res);
        }
コード例 #3
0
        public static internalDTO.Customs.ProductDetails MapFromBLL(externalDTO.Customs.ProductDetails product)
        {
            var res = product == null ? null : new internalDTO.Customs.ProductDetails()
            {
                Id = product.Id,
                RouteOfAdministrationId = product.RouteOfAdministrationId,
                RouteOfAdministration   = RouteOfAdministrationMapper.MapFromBLL(product.RouteOfAdministration),
                ProductClassificationId = product.ProductClassificationId,
                ProductClassification   = ProductClassificationMapper.MapFromBLL(product.ProductClassification),
                ProductNameId           = product.ProductNameId,
                ProductName             = ProductNameMapper.MapFromBLL(product.ProductName),
                ProductCompanyId        = product.ProductCompanyId,
                ProductCompany          = ProductCompanyMapper.MapFromBLL(product.ProductCompany),
                ProductDescriptionId    = product.ProductDescriptionId,
                ProductDescription      = ProductDescriptionMapper.MapFromBLL(product.ProductDescription),
                ProductDosageId         = product.ProductDosageId,
                ProductDosage           = ProductDosageMapper.MapFromBLL(product.ProductDosage)
            };

            return(res);
        }