GET api/Sponsor/GetSponsor?id={id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

None.

Response Information

Resource Description

ServiceResultOfSponsor
NameDescriptionTypeAdditional information
Success

boolean

None.

ErrorMessage

string

None.

SuccessMessage

string

None.

Result

Sponsor

None.

StatusCode

HttpStatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "ErrorMessage": "sample string 2",
  "SuccessMessage": "sample string 3",
  "Result": {
    "Name": "sample string 1",
    "Url": "sample string 2",
    "Description": "sample string 3",
    "ShowOnFrontPage": true,
    "Status": 0,
    "Location": "sample string 5",
    "ImageUrl": "sample string 6",
    "SponsorImage": {
      "Id": 1,
      "Guid": "6d0bd900-1e5b-43b5-9400-afb398d60306",
      "RawImage": "QEA=",
      "FileType": "sample string 2",
      "FileName": "sample string 3",
      "Ratio": 4.1,
      "UploadedDate": "2019-10-15T05:49:07.1191215+02:00",
      "ImageUrl": "sample string 6",
      "Afdeling": 0,
      "Type": 0,
      "Title": "sample string 7",
      "Description": "sample string 8",
      "FrontText": "sample string 9",
      "FrontTextColor": "sample string 10",
      "FrontBackgroundColor": "sample string 11",
      "ShowOnFrontPage": true
    },
    "Id": 7,
    "Created": "2019-10-15T05:49:07.1191215+02:00",
    "CreatedBy": "sample string 8",
    "Modified": "2019-10-15T05:49:07.1191215+02:00",
    "ModifiedBy": "sample string 9"
  },
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<ServiceResultOfSponsorYgFqSxnr xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model">
  <ErrorMessage>sample string 2</ErrorMessage>
  <Result>
    <Created xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T05:49:07.1191215+02:00</Created>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 8</CreatedBy>
    <Id xmlns="http://schemas.datacontract.org/2004/07/Model.Base">7</Id>
    <Modified xmlns="http://schemas.datacontract.org/2004/07/Model.Base">2019-10-15T05:49:07.1191215+02:00</Modified>
    <ModifiedBy xmlns="http://schemas.datacontract.org/2004/07/Model.Base">sample string 9</ModifiedBy>
    <Description>sample string 3</Description>
    <ImageUrl>sample string 6</ImageUrl>
    <Location>sample string 5</Location>
    <Name>sample string 1</Name>
    <ShowOnFrontPage>true</ShowOnFrontPage>
    <SponsorImage>
      <Afdeling>Håndbold</Afdeling>
      <Description>sample string 8</Description>
      <FileName>sample string 3</FileName>
      <FileType>sample string 2</FileType>
      <FrontBackgroundColor>sample string 11</FrontBackgroundColor>
      <FrontText>sample string 9</FrontText>
      <FrontTextColor>sample string 10</FrontTextColor>
      <Guid>6d0bd900-1e5b-43b5-9400-afb398d60306</Guid>
      <Id>1</Id>
      <ImageUrl>sample string 6</ImageUrl>
      <Ratio>4.1</Ratio>
      <RawImage>QEA=</RawImage>
      <ShowOnFrontPage>true</ShowOnFrontPage>
      <Title>sample string 7</Title>
      <Type>News</Type>
      <UploadedDate>2019-10-15T05:49:07.1191215+02:00</UploadedDate>
    </SponsorImage>
    <Status>Aktiv</Status>
    <Url>sample string 2</Url>
  </Result>
  <StatusCode>Continue</StatusCode>
  <Success>true</Success>
  <SuccessMessage>sample string 3</SuccessMessage>
</ServiceResultOfSponsorYgFqSxnr>