POST api/Admin/UpdateNews

Request Information

URI Parameters

None.

Body Parameters

News
NameDescriptionTypeAdditional information
NewsID

integer

None.

Heading

string

None.

NewsDescription

string

None.

NewsImgURL

string

None.

ImageOriginalName

string

None.

Request Formats

application/json, text/json

Sample:
{
  "NewsID": 1,
  "Heading": "sample string 2",
  "NewsDescription": "sample string 3",
  "NewsImgURL": "sample string 4",
  "ImageOriginalName": "sample string 5"
}

application/xml, text/xml

Sample:
<News xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MODEL.Models">
  <Heading>sample string 2</Heading>
  <ImageOriginalName>sample string 5</ImageOriginalName>
  <NewsDescription>sample string 3</NewsDescription>
  <NewsID>1</NewsID>
  <NewsImgURL>sample string 4</NewsImgURL>
</News>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'News'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.