GET api/Contact/GetMessages?Page={Page}&ItemsPerPage={ItemsPerPage}&SortBy={SortBy}&Reverse={Reverse}&Search={Search}&Date={Date}&Day={Day}&FilterType={FilterType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Page

integer

None.

ItemsPerPage

integer

None.

SortBy

string

None.

Reverse

boolean

None.

Search

string

None.

Date

date

None.

Day

string

None.

FilterType

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of ContactUsModel
NameDescriptionTypeAdditional information
Id

integer

None.

IsRead

boolean

None.

CreatedOn

date

None.

ModifiedBy

string

None.

Name

string

None.

Email

string

None.

Message

string

None.

Phone

string

None.

Company

string

None.

TypeOfBusiness

string

None.

AreaAppliesFor

string

None.

RegionalOfficeAddress

string

None.

AnnualEarnings

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "IsRead": true,
    "CreatedOn": "2019-07-21T09:29:45.210332+05:00",
    "ModifiedBy": "sample string 4",
    "Name": "sample string 5",
    "Email": "sample string 6",
    "Message": "sample string 7",
    "Phone": "sample string 8",
    "Company": "sample string 9",
    "TypeOfBusiness": "sample string 10",
    "AreaAppliesFor": "sample string 11",
    "RegionalOfficeAddress": "sample string 12",
    "AnnualEarnings": "sample string 13"
  },
  {
    "Id": 1,
    "IsRead": true,
    "CreatedOn": "2019-07-21T09:29:45.210332+05:00",
    "ModifiedBy": "sample string 4",
    "Name": "sample string 5",
    "Email": "sample string 6",
    "Message": "sample string 7",
    "Phone": "sample string 8",
    "Company": "sample string 9",
    "TypeOfBusiness": "sample string 10",
    "AreaAppliesFor": "sample string 11",
    "RegionalOfficeAddress": "sample string 12",
    "AnnualEarnings": "sample string 13"
  }
]

application/xml, text/xml

Sample:
<ArrayOfContactUsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Contact">
  <ContactUsModel>
    <AnnualEarnings>sample string 13</AnnualEarnings>
    <AreaAppliesFor>sample string 11</AreaAppliesFor>
    <Company>sample string 9</Company>
    <Email>sample string 6</Email>
    <Message>sample string 7</Message>
    <Name>sample string 5</Name>
    <Phone>sample string 8</Phone>
    <RegionalOfficeAddress>sample string 12</RegionalOfficeAddress>
    <TypeOfBusiness>sample string 10</TypeOfBusiness>
    <CreatedOn>2019-07-21T09:29:45.210332+05:00</CreatedOn>
    <Id>1</Id>
    <IsRead>true</IsRead>
    <ModifiedBy>sample string 4</ModifiedBy>
  </ContactUsModel>
  <ContactUsModel>
    <AnnualEarnings>sample string 13</AnnualEarnings>
    <AreaAppliesFor>sample string 11</AreaAppliesFor>
    <Company>sample string 9</Company>
    <Email>sample string 6</Email>
    <Message>sample string 7</Message>
    <Name>sample string 5</Name>
    <Phone>sample string 8</Phone>
    <RegionalOfficeAddress>sample string 12</RegionalOfficeAddress>
    <TypeOfBusiness>sample string 10</TypeOfBusiness>
    <CreatedOn>2019-07-21T09:29:45.210332+05:00</CreatedOn>
    <Id>1</Id>
    <IsRead>true</IsRead>
    <ModifiedBy>sample string 4</ModifiedBy>
  </ContactUsModel>
</ArrayOfContactUsModel>