public static internalDTO.ProductCompany MapFromExternal(externalDTO.ProductCompany productCompany)
        {
            var res = productCompany == null ? null : new internalDTO.ProductCompany
            {
                Id        = productCompany.Id,
                ProductId = productCompany.ProductId,
                Product   = ProductMapper.MapFromExternal(productCompany.Product),
                CompanyId = productCompany.CompanyId,
                Company   = CompanyMapper.MapFromExternal(productCompany.Company)
            };

            return(res);
        }
        public static internalDTO.CompanyRole MapFromExternal(externalDTO.CompanyRole companyRole)
        {
            var res = companyRole == null ? null : new internalDTO.CompanyRole
            {
                Id        = companyRole.Id,
                CompanyId = companyRole.CompanyId,
                Company   = CompanyMapper.MapFromExternal(companyRole.Company),
                CRoleId   = companyRole.CRoleId,
                CRole     = CRoleMapper.MapFromExternal(companyRole.CRole)
            };

            return(res);
        }