POST api/HoiDap/create

Request Information

URI Parameters

None.

Body Parameters

HoiDapViewModel
NameDescriptionTypeAdditional information
ID

integer

None.

HoTen

string

None.

NamSinh

string

None.

DiaChi

string

None.

EmailNguoiHoi

string

None.

SoDienThoai

string

None.

CauHoi

string

None.

TraLoi

string

None.

NguoiTraLoi

string

None.

KichHoat

boolean

None.

NgayTao

string

None.

NguoiTao

string

None.

NgaySua

string

None.

NguoiSua

string

None.

DaXoa

boolean

None.

NgayXoa

string

None.

NguoiXoa

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "HoTen": "sample string 2",
  "NamSinh": "sample string 3",
  "DiaChi": "sample string 4",
  "EmailNguoiHoi": "sample string 5",
  "SoDienThoai": "sample string 6",
  "CauHoi": "sample string 7",
  "TraLoi": "sample string 8",
  "NguoiTraLoi": "sample string 9",
  "KichHoat": true,
  "NgayTao": "sample string 10",
  "NguoiTao": "sample string 11",
  "NgaySua": "sample string 12",
  "NguoiSua": "sample string 13",
  "DaXoa": true,
  "NgayXoa": "sample string 14",
  "NguoiXoa": "sample string 15"
}

application/xml, text/xml

Sample:
<HoiDapViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LcdCNTT.Web.Models">
  <CauHoi>sample string 7</CauHoi>
  <DaXoa>true</DaXoa>
  <DiaChi>sample string 4</DiaChi>
  <EmailNguoiHoi>sample string 5</EmailNguoiHoi>
  <HoTen>sample string 2</HoTen>
  <ID>1</ID>
  <KichHoat>true</KichHoat>
  <NamSinh>sample string 3</NamSinh>
  <NgaySua>sample string 12</NgaySua>
  <NgayTao>sample string 10</NgayTao>
  <NgayXoa>sample string 14</NgayXoa>
  <NguoiSua>sample string 13</NguoiSua>
  <NguoiTao>sample string 11</NguoiTao>
  <NguoiTraLoi>sample string 9</NguoiTraLoi>
  <NguoiXoa>sample string 15</NguoiXoa>
  <SoDienThoai>sample string 6</SoDienThoai>
  <TraLoi>sample string 8</TraLoi>
</HoiDapViewModel>

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 'HoiDapViewModel'.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.