POST api/RoomReservationStatus/InsertReservationStatus

Request Information

URI Parameters

None.

Body Parameters

RoomReservationStatusViewModel
NameDescriptionTypeAdditional information
User_Id

integer

None.

Room_Id

integer

None.

CountRoom

integer

None.

StartDate

date

None.

strStartDate

string

None.

EndDate

date

None.

strEndDate

string

None.

RegisterDate

date

None.

IsActive

boolean

None.

Id

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "User_Id": 1,
  "Room_Id": 2,
  "CountRoom": 3,
  "StartDate": "2021-01-18T01:06:40.741657+03:30",
  "strStartDate": "sample string 5",
  "EndDate": "2021-01-18T01:06:40.741657+03:30",
  "strEndDate": "sample string 7",
  "RegisterDate": "2021-01-18T01:06:40.741657+03:30",
  "IsActive": true,
  "Id": 10
}

application/xml, text/xml

Sample:
<RoomReservationStatusViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ArNikAPI.Services.Orders.Models">
  <Id xmlns="http://schemas.datacontract.org/2004/07/ArNikCo.Domain.Entities">10</Id>
  <CountRoom>3</CountRoom>
  <EndDate>2021-01-18T01:06:40.741657+03:30</EndDate>
  <IsActive>true</IsActive>
  <RegisterDate>2021-01-18T01:06:40.741657+03:30</RegisterDate>
  <Room_Id>2</Room_Id>
  <StartDate>2021-01-18T01:06:40.741657+03:30</StartDate>
  <User_Id>1</User_Id>
  <strEndDate>sample string 7</strEndDate>
  <strStartDate>sample string 5</strStartDate>
</RoomReservationStatusViewModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RoomReservationStatusViewModel'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>