public static internalDTO.Product MapFromExternal(externalDTO.Product product) { var res = product == null ? null : new internalDTO.Product { Id = product.Id, RouteOfAdministrationId = product.RouteOfAdministrationId, RouteOfAdministration = RouteOfAdministrationMapper.MapFromExternal(product.RouteOfAdministration), ProductClassificationId = product.ProductClassificationId, ProductClassification = ProductClassificationMapper.MapFromExternal(product.ProductClassification), ProductNameId = product.ProductNameId, ProductName = ProductNameMapper.MapFromExternal(product.ProductName) }; return(res); }
public static internalDTO.Customs.ProductOverview MapFromExternal(externalDTO.Customs.ProductOverview product) { var res = product == null ? null : new internalDTO.Customs.ProductOverview() { Id = product.Id, RouteOfAdministrationId = product.RouteOfAdministrationId, RouteOfAdministration = RouteOfAdministrationMapper.MapFromExternal(product.RouteOfAdministration), ProductClassificationId = product.ProductClassificationId, ProductClassification = ProductClassificationMapper.MapFromExternal(product.ProductClassification), ProductNameId = product.ProductNameId, ProductName = ProductNameMapper.MapFromExternal(product.ProductName), ProductCompanyId = product.ProductCompanyId, ProductCompany = ProductCompanyMapper.MapFromExternal(product.ProductCompany) }; return(res); }
public static internalDTO.Customs.ProductDetails MapFromExternal(externalDTO.Customs.ProductDetails product) { var res = product == null ? null : new internalDTO.Customs.ProductDetails() { Id = product.Id, RouteOfAdministrationId = product.RouteOfAdministrationId, RouteOfAdministration = RouteOfAdministrationMapper.MapFromExternal(product.RouteOfAdministration), ProductClassificationId = product.ProductClassificationId, ProductClassification = ProductClassificationMapper.MapFromExternal(product.ProductClassification), ProductNameId = product.ProductNameId, ProductName = ProductNameMapper.MapFromExternal(product.ProductName), ProductCompanyId = product.ProductCompanyId, ProductCompany = ProductCompanyMapper.MapFromExternal(product.ProductCompany), ProductDescriptionId = product.ProductDescriptionId, ProductDescription = ProductDescriptionMapper.MapFromExternal(product.ProductDescription), ProductDosageId = product.ProductDosageId, ProductDosage = ProductDosageMapper.MapFromExternal(product.ProductDosage) }; return(res); }