POST api/HomePageSetting/UpdateHomeSetting?homePageId={homePageId}&Slider={Slider}&trending={trending}&newItem={newItem}&banner={banner}&adver={adver}&CompanyId={CompanyId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
homePageId

integer

Required

Slider

string

Required

trending

string

Required

newItem

string

Required

banner

string

Required

adver

string

Required

CompanyId

integer

Required

Body Parameters

HomePageSetting
NameDescriptionTypeAdditional information
HomePageSettingsId

integer

None.

ShowSlider

string

None.

ShowTrendingItems

string

None.

ShowNewItems

string

None.

DisplayBannerImages

string

None.

ShowAdvertisement

string

None.

CompanyDetailId

integer

None.

HomeBannerImages

Collection of HomeBannerImage

None.

HomeSliderImages

Collection of HomeSliderImage

None.

Request Formats

application/json, text/json

Sample:
{
  "HomePageSettingsId": 1,
  "ShowSlider": "sample string 2",
  "ShowTrendingItems": "sample string 3",
  "ShowNewItems": "sample string 4",
  "DisplayBannerImages": "sample string 5",
  "ShowAdvertisement": "sample string 6",
  "CompanyDetailId": 1,
  "HomeBannerImages": [
    {
      "$id": "2",
      "HomeBannerImageId": 1,
      "HomePageSettingsId": 1,
      "BannerImageURL": "sample string 2",
      "CompanyDetailId": 1,
      "HomePageSetting": {
        "$ref": "1"
      }
    },
    {
      "$ref": "2"
    }
  ],
  "HomeSliderImages": [
    {
      "$id": "3",
      "HomeSliderImageId": 1,
      "HomePageSettingsId": 1,
      "ImageUrl": "sample string 2",
      "CompanyDetailId": 1,
      "HomePageSetting": {
        "$ref": "1"
      }
    },
    {
      "$ref": "3"
    }
  ]
}

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.