PUT api/PhongKhoa_Nghe/update

Request Information

URI Parameters

None.

Body Parameters

PhongKhoa_NgheViewModel
NameDescriptionTypeAdditional information
ID

integer

None.

PhongKhoaID

integer

None.

TenNghe

string

None.

NgheLink

string

None.

MoTa

string

None.

NoiDung

string

None.

HinhAnh

string

None.

Video

string

None.

isCaoDang

boolean

None.

isTrungCap

boolean

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.

PhongKhoa

PhongKhoaViewModel

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "PhongKhoaID": 1,
  "TenNghe": "sample string 2",
  "NgheLink": "sample string 3",
  "MoTa": "sample string 4",
  "NoiDung": "sample string 5",
  "HinhAnh": "sample string 6",
  "Video": "sample string 7",
  "isCaoDang": true,
  "isTrungCap": true,
  "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",
  "PhongKhoa": {
    "ID": 1,
    "TenPhongKhoa": "sample string 2",
    "PhongKhoaLink": "sample string 3",
    "TruongPhong": "sample string 4",
    "PhoTruongPhong": "sample string 5",
    "HinhAnh": "sample string 6",
    "isPhong": true,
    "NoiDung": "sample string 7",
    "KichHoat": true,
    "NgayTao": "sample string 8",
    "NguoiTao": "sample string 9",
    "NgaySua": "sample string 10",
    "NguoiSua": "sample string 11",
    "DaXoa": true,
    "NgayXoa": "sample string 12",
    "NguoiXoa": "sample string 13"
  }
}

application/xml, text/xml

Sample:
<PhongKhoa_NgheViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LcdCNTT.Web.Models">
  <DaXoa>true</DaXoa>
  <HinhAnh>sample string 6</HinhAnh>
  <ID>1</ID>
  <KichHoat>true</KichHoat>
  <MoTa>sample string 4</MoTa>
  <NgaySua>sample string 12</NgaySua>
  <NgayTao>sample string 10</NgayTao>
  <NgayXoa>sample string 14</NgayXoa>
  <NgheLink>sample string 3</NgheLink>
  <NguoiSua>sample string 13</NguoiSua>
  <NguoiTao>sample string 11</NguoiTao>
  <NguoiXoa>sample string 15</NguoiXoa>
  <NoiDung>sample string 5</NoiDung>
  <PhongKhoa>
    <DaXoa>true</DaXoa>
    <HinhAnh>sample string 6</HinhAnh>
    <ID>1</ID>
    <KichHoat>true</KichHoat>
    <NgaySua>sample string 10</NgaySua>
    <NgayTao>sample string 8</NgayTao>
    <NgayXoa>sample string 12</NgayXoa>
    <NguoiSua>sample string 11</NguoiSua>
    <NguoiTao>sample string 9</NguoiTao>
    <NguoiXoa>sample string 13</NguoiXoa>
    <NoiDung>sample string 7</NoiDung>
    <PhoTruongPhong>sample string 5</PhoTruongPhong>
    <PhongKhoaLink>sample string 3</PhongKhoaLink>
    <TenPhongKhoa>sample string 2</TenPhongKhoa>
    <TruongPhong>sample string 4</TruongPhong>
    <isPhong>true</isPhong>
  </PhongKhoa>
  <PhongKhoaID>1</PhongKhoaID>
  <TenNghe>sample string 2</TenNghe>
  <Video>sample string 7</Video>
  <isCaoDang>true</isCaoDang>
  <isTrungCap>true</isTrungCap>
</PhongKhoa_NgheViewModel>

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

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.