POST api/QuanLyTrungTam/ThemNguoiDung

Request Information

URI Parameters

None.

Body Parameters

NguoiDung
NameDescriptionTypeAdditional information
TaiKhoan

string

None.

MatKhau

string

None.

HoTen

string

None.

Email

string

None.

SoDT

string

None.

MaLoaiNguoiDung

string

None.

HocVienKhoaHocs

Collection of HocVienKhoaHoc

None.

KhoaHocs

Collection of KhoaHoc

None.

LoaiNguoiDung

LoaiNguoiDung

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'CinimaServer.Models.HocVienKhoaHoc' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'CinimaServer.Models.HocVienKhoaHoc' contains cycles and cannot be serialized if reference tracking is disabled.

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

Response Information

Resource Description

NguoiDung
NameDescriptionTypeAdditional information
TaiKhoan

string

None.

MatKhau

string

None.

HoTen

string

None.

Email

string

None.

SoDT

string

None.

MaLoaiNguoiDung

string

None.

HocVienKhoaHocs

Collection of HocVienKhoaHoc

None.

KhoaHocs

Collection of KhoaHoc

None.

LoaiNguoiDung

LoaiNguoiDung

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

text/json

Sample:

An exception has occurred while using the formatter 'JsonMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Object graph for type 'CinimaServer.Models.HocVienKhoaHoc' contains cycles and cannot be serialized if reference tracking is disabled.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Object graph for type 'CinimaServer.Models.HocVienKhoaHoc' contains cycles and cannot be serialized if reference tracking is disabled.

text/javascript

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/javascript'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

application/javascript

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/javascript'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.

application/json-p

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json-p'. Exception message: Self referencing loop detected with type 'CinimaServer.Models.HocVienKhoaHoc'. Path 'HocVienKhoaHocs[0].KhoaHoc.HocVienKhoaHocs'.