GET api/Banner/GetBanners?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 BannerModel
NameDescriptionTypeAdditional information
Id

byte

None.

Name

string

None.

Content

string

None.

IsActive

boolean

None.

IsSlider

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

BannerDetailList

Collection of BannerDetailModel

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 64,
    "Name": "sample string 2",
    "Content": "sample string 3",
    "IsActive": true,
    "IsSlider": true,
    "CreatedBy": "sample string 5",
    "ModifiedBy": "sample string 6",
    "BannerDetailList": [
      {
        "Id": 64,
        "BannerId": 64,
        "Name": "sample string 3",
        "Path": "sample string 4"
      },
      {
        "Id": 64,
        "BannerId": 64,
        "Name": "sample string 3",
        "Path": "sample string 4"
      }
    ]
  },
  {
    "Id": 64,
    "Name": "sample string 2",
    "Content": "sample string 3",
    "IsActive": true,
    "IsSlider": true,
    "CreatedBy": "sample string 5",
    "ModifiedBy": "sample string 6",
    "BannerDetailList": [
      {
        "Id": 64,
        "BannerId": 64,
        "Name": "sample string 3",
        "Path": "sample string 4"
      },
      {
        "Id": 64,
        "BannerId": 64,
        "Name": "sample string 3",
        "Path": "sample string 4"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfBannerModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Banner">
  <BannerModel>
    <BannerDetailList>
      <BannerDetailModel>
        <BannerId>64</BannerId>
        <Id>64</Id>
        <Name>sample string 3</Name>
        <Path>sample string 4</Path>
      </BannerDetailModel>
      <BannerDetailModel>
        <BannerId>64</BannerId>
        <Id>64</Id>
        <Name>sample string 3</Name>
        <Path>sample string 4</Path>
      </BannerDetailModel>
    </BannerDetailList>
    <Content>sample string 3</Content>
    <CreatedBy>sample string 5</CreatedBy>
    <Id>64</Id>
    <IsActive>true</IsActive>
    <IsSlider>true</IsSlider>
    <ModifiedBy>sample string 6</ModifiedBy>
    <Name>sample string 2</Name>
  </BannerModel>
  <BannerModel>
    <BannerDetailList>
      <BannerDetailModel>
        <BannerId>64</BannerId>
        <Id>64</Id>
        <Name>sample string 3</Name>
        <Path>sample string 4</Path>
      </BannerDetailModel>
      <BannerDetailModel>
        <BannerId>64</BannerId>
        <Id>64</Id>
        <Name>sample string 3</Name>
        <Path>sample string 4</Path>
      </BannerDetailModel>
    </BannerDetailList>
    <Content>sample string 3</Content>
    <CreatedBy>sample string 5</CreatedBy>
    <Id>64</Id>
    <IsActive>true</IsActive>
    <IsSlider>true</IsSlider>
    <ModifiedBy>sample string 6</ModifiedBy>
    <Name>sample string 2</Name>
  </BannerModel>
</ArrayOfBannerModel>