GET api/mapRoletoProduct/get-MapProductTypeToRole/{roleId}/{industryId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
roleId

integer

Required

industryId

integer

Required

Body Parameters

None.

Response Information

Resource Description

MapProductToRoleDTO
NameDescriptionTypeAdditional information
Id

integer

None.

RoleId

integer

None.

ProductTypeId

integer

None.

IndustryId

integer

None.

RoleName

string

None.

ProductTypeName

string

None.

IndustryName

string

None.

Status

boolean

None.

IsChecked

boolean

None.

RoleDTOs

Collection of RoleDTO

None.

MapProductTypeDTOs

Collection of MapProductTypeDTO

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "RoleId": 2,
  "ProductTypeId": 3,
  "IndustryId": 1,
  "RoleName": "sample string 4",
  "ProductTypeName": "sample string 5",
  "IndustryName": "sample string 6",
  "Status": true,
  "IsChecked": true,
  "RoleDTOs": [
    {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4",
      "RoleTypeDTOs": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Status": true
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Status": true
        }
      ],
      "UserTypeId": 1,
      "RoleTypeName": "sample string 5",
      "CreatedBy": 1,
      "CreatedDate": "2026-01-26T13:36:21.7770584+00:00",
      "ModifiedBy": 1,
      "ModifiedDate": "2026-01-26T13:36:21.7770584+00:00",
      "Status": true
    },
    {
      "Id": 1,
      "Code": "sample string 2",
      "Name": "sample string 3",
      "Description": "sample string 4",
      "RoleTypeDTOs": [
        {
          "Id": 1,
          "Name": "sample string 2",
          "Status": true
        },
        {
          "Id": 1,
          "Name": "sample string 2",
          "Status": true
        }
      ],
      "UserTypeId": 1,
      "RoleTypeName": "sample string 5",
      "CreatedBy": 1,
      "CreatedDate": "2026-01-26T13:36:21.7770584+00:00",
      "ModifiedBy": 1,
      "ModifiedDate": "2026-01-26T13:36:21.7770584+00:00",
      "Status": true
    }
  ],
  "MapProductTypeDTOs": [
    {
      "Id": 1,
      "MapProductTypeToRoleId": 1,
      "ProductTypeId": 1,
      "ProductTypeName": "sample string 2",
      "IsChecked": true,
      "IndustryId": 1,
      "IndustryName": "sample string 4",
      "Status": true
    },
    {
      "Id": 1,
      "MapProductTypeToRoleId": 1,
      "ProductTypeId": 1,
      "ProductTypeName": "sample string 2",
      "IsChecked": true,
      "IndustryId": 1,
      "IndustryName": "sample string 4",
      "Status": true
    }
  ]
}

application/xml, text/xml

Sample:
<MapProductToRoleDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.ProductSetup">
  <Id>1</Id>
  <IndustryId>1</IndustryId>
  <IndustryName>sample string 6</IndustryName>
  <IsChecked>true</IsChecked>
  <MapProductTypeDTOs>
    <MapProductTypeDTO>
      <Id>1</Id>
      <IndustryId>1</IndustryId>
      <IndustryName>sample string 4</IndustryName>
      <IsChecked>true</IsChecked>
      <MapProductTypeToRoleId>1</MapProductTypeToRoleId>
      <ProductTypeId>1</ProductTypeId>
      <ProductTypeName>sample string 2</ProductTypeName>
      <Status>true</Status>
    </MapProductTypeDTO>
    <MapProductTypeDTO>
      <Id>1</Id>
      <IndustryId>1</IndustryId>
      <IndustryName>sample string 4</IndustryName>
      <IsChecked>true</IsChecked>
      <MapProductTypeToRoleId>1</MapProductTypeToRoleId>
      <ProductTypeId>1</ProductTypeId>
      <ProductTypeName>sample string 2</ProductTypeName>
      <Status>true</Status>
    </MapProductTypeDTO>
  </MapProductTypeDTOs>
  <ProductTypeId>3</ProductTypeId>
  <ProductTypeName>sample string 5</ProductTypeName>
  <RoleDTOs xmlns:d2p1="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO.User">
    <d2p1:RoleDTO>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2026-01-26T13:36:21.7770584+00:00</CreatedDate>
      <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</ModifiedBy>
      <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2026-01-26T13:36:21.7770584+00:00</ModifiedDate>
      <Status xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">true</Status>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:RoleTypeDTOs>
        <d2p1:UserTypeDTO>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Name>sample string 2</d2p1:Name>
          <d2p1:Status>true</d2p1:Status>
        </d2p1:UserTypeDTO>
        <d2p1:UserTypeDTO>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Name>sample string 2</d2p1:Name>
          <d2p1:Status>true</d2p1:Status>
        </d2p1:UserTypeDTO>
      </d2p1:RoleTypeDTOs>
      <d2p1:RoleTypeName>sample string 5</d2p1:RoleTypeName>
      <d2p1:UserTypeId>1</d2p1:UserTypeId>
    </d2p1:RoleDTO>
    <d2p1:RoleDTO>
      <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</CreatedBy>
      <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2026-01-26T13:36:21.7770584+00:00</CreatedDate>
      <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">1</ModifiedBy>
      <ModifiedDate xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">2026-01-26T13:36:21.7770584+00:00</ModifiedDate>
      <Status xmlns="http://schemas.datacontract.org/2004/07/SUM.Prod.RS.Common.Components.DTO">true</Status>
      <d2p1:Code>sample string 2</d2p1:Code>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Name>sample string 3</d2p1:Name>
      <d2p1:RoleTypeDTOs>
        <d2p1:UserTypeDTO>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Name>sample string 2</d2p1:Name>
          <d2p1:Status>true</d2p1:Status>
        </d2p1:UserTypeDTO>
        <d2p1:UserTypeDTO>
          <d2p1:Id>1</d2p1:Id>
          <d2p1:Name>sample string 2</d2p1:Name>
          <d2p1:Status>true</d2p1:Status>
        </d2p1:UserTypeDTO>
      </d2p1:RoleTypeDTOs>
      <d2p1:RoleTypeName>sample string 5</d2p1:RoleTypeName>
      <d2p1:UserTypeId>1</d2p1:UserTypeId>
    </d2p1:RoleDTO>
  </RoleDTOs>
  <RoleId>2</RoleId>
  <RoleName>sample string 4</RoleName>
  <Status>true</Status>
</MapProductToRoleDTO>