POST api/Menu/Create

Request Information

URI Parameters

None.

Body Parameters

MenuMaster_Add_Model
NameDescriptionTypeAdditional information
MenuID

integer

None.

MenuName

string

None.

IsActive

boolean

None.

Child

Collection of MenuChild_Add_Model

None.

Request Formats

application/json, text/json

Sample:
{
  "MenuID": 1,
  "MenuName": "sample string 2",
  "IsActive": true,
  "Child": [
    {
      "MenuChildID": 1,
      "ID": 2,
      "Title": "sample string 3",
      "IsLabel": true,
      "IsFolder": true,
      "IsPage": true,
      "OrderNo": 7,
      "ParentMenuID": 8,
      "IconClassName": "sample string 9",
      "PageID": 10
    },
    {
      "MenuChildID": 1,
      "ID": 2,
      "Title": "sample string 3",
      "IsLabel": true,
      "IsFolder": true,
      "IsPage": true,
      "OrderNo": 7,
      "ParentMenuID": 8,
      "IconClassName": "sample string 9",
      "PageID": 10
    }
  ]
}

application/xml, text/xml

Sample:
<MenuMaster_Add_Model xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ERP.Model.Master">
  <Child>
    <MenuChild_Add_Model>
      <ID>2</ID>
      <IconClassName>sample string 9</IconClassName>
      <IsFolder>true</IsFolder>
      <IsLabel>true</IsLabel>
      <IsPage>true</IsPage>
      <MenuChildID>1</MenuChildID>
      <OrderNo>7</OrderNo>
      <PageID>10</PageID>
      <ParentMenuID>8</ParentMenuID>
      <Title>sample string 3</Title>
    </MenuChild_Add_Model>
    <MenuChild_Add_Model>
      <ID>2</ID>
      <IconClassName>sample string 9</IconClassName>
      <IsFolder>true</IsFolder>
      <IsLabel>true</IsLabel>
      <IsPage>true</IsPage>
      <MenuChildID>1</MenuChildID>
      <OrderNo>7</OrderNo>
      <PageID>10</PageID>
      <ParentMenuID>8</ParentMenuID>
      <Title>sample string 3</Title>
    </MenuChild_Add_Model>
  </Child>
  <IsActive>true</IsActive>
  <MenuID>1</MenuID>
  <MenuName>sample string 2</MenuName>
</MenuMaster_Add_Model>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.