POST api/Gallery/AddOrUpdate

Request Information

URI Parameters

None.

Body Parameters

GalleryModel
NameDescriptionTypeAdditional information
GalleryType

string

None.

IsActive

boolean

None.

IsDeleted

boolean

None.

CreatedBy

string

None.

ModifiedBy

string

None.

List

Collection of GalleryDetailModel

None.

CreatedOn

date

None.

Id

integer

None.

Type

byte

None.

Title

string

None.

CoverPhotoPath

string

None.

ThumbnailPath

string

None.

List

Collection of GalleryDetailViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "GalleryType": "sample string 1",
  "IsActive": true,
  "IsDeleted": true,
  "CreatedBy": "sample string 4",
  "ModifiedBy": "sample string 5",
  "List": [
    {
      "IsDeleted": true,
      "ModifiedBy": "sample string 2",
      "CreatedBy": "sample string 3",
      "Id": 4,
      "GalleryId": 5,
      "Caption": "sample string 6",
      "Path": "sample string 7",
      "ThumbnailPath": "sample string 8"
    },
    {
      "IsDeleted": true,
      "ModifiedBy": "sample string 2",
      "CreatedBy": "sample string 3",
      "Id": 4,
      "GalleryId": 5,
      "Caption": "sample string 6",
      "Path": "sample string 7",
      "ThumbnailPath": "sample string 8"
    }
  ],
  "CreatedOn": "2019-10-16T22:20:44.7347216+05:00",
  "Id": 7,
  "Type": 64,
  "Title": "sample string 9",
  "CoverPhotoPath": "sample string 10",
  "ThumbnailPath": "sample string 11"
}

application/xml, text/xml

Sample:
<GalleryModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.Gallery">
  <CoverPhotoPath>sample string 10</CoverPhotoPath>
  <Id>7</Id>
  <List>
    <GalleryDetailViewModel>
      <Caption>sample string 3</Caption>
      <GalleryId>2</GalleryId>
      <Id>1</Id>
      <Path>sample string 4</Path>
      <ThumbnailPath>sample string 5</ThumbnailPath>
    </GalleryDetailViewModel>
    <GalleryDetailViewModel>
      <Caption>sample string 3</Caption>
      <GalleryId>2</GalleryId>
      <Id>1</Id>
      <Path>sample string 4</Path>
      <ThumbnailPath>sample string 5</ThumbnailPath>
    </GalleryDetailViewModel>
  </List>
  <ThumbnailPath>sample string 11</ThumbnailPath>
  <Title>sample string 9</Title>
  <Type>64</Type>
  <CreatedBy>sample string 4</CreatedBy>
  <CreatedOn>2019-10-16T22:20:44.7347216+05:00</CreatedOn>
  <GalleryType>sample string 1</GalleryType>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <List>
    <GalleryDetailModel>
      <Caption>sample string 6</Caption>
      <GalleryId>5</GalleryId>
      <Id>4</Id>
      <Path>sample string 7</Path>
      <ThumbnailPath>sample string 8</ThumbnailPath>
      <CreatedBy>sample string 3</CreatedBy>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>sample string 2</ModifiedBy>
    </GalleryDetailModel>
    <GalleryDetailModel>
      <Caption>sample string 6</Caption>
      <GalleryId>5</GalleryId>
      <Id>4</Id>
      <Path>sample string 7</Path>
      <ThumbnailPath>sample string 8</ThumbnailPath>
      <CreatedBy>sample string 3</CreatedBy>
      <IsDeleted>true</IsDeleted>
      <ModifiedBy>sample string 2</ModifiedBy>
    </GalleryDetailModel>
  </List>
  <ModifiedBy>sample string 5</ModifiedBy>
</GalleryModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.