POST api/Email/Contactus

Request Information

URI Parameters

None.

Body Parameters

vmEmail
NameDescriptionTypeAdditional information
FullName

string

None.

EmailAddress

string

None.

PhoneNumber

string

None.

CountryName

string

None.

Message

string

None.

Key

string

None.

Request Formats

application/json, text/json

Sample:
{
  "FullName": "sample string 1",
  "EmailAddress": "sample string 2",
  "PhoneNumber": "sample string 3",
  "CountryName": "sample string 4",
  "Message": "sample string 5",
  "Key": "sample string 6"
}

application/xml, text/xml

Sample:
<vmEmail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TrishAcademy.ViewModel">
  <CountryName>sample string 4</CountryName>
  <EmailAddress>sample string 2</EmailAddress>
  <FullName>sample string 1</FullName>
  <Key>sample string 6</Key>
  <Message>sample string 5</Message>
  <PhoneNumber>sample string 3</PhoneNumber>
</vmEmail>

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 'vmEmail'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.