POST api/CourseManagement/InsertRatingForCourse

Request Information

URI Parameters

None.

Body Parameters

CommentsCourse
NameDescriptionTypeAdditional information
Comment

string

None.

Rating

byte

None.

ID

integer

None.

UserID

integer

None.

CourseID

integer

None.

CourseName

string

None.

CreateDate

date

None.

JalaliCreateDate

string

None.

LikeComment

integer

None.

DisLikeComment

integer

None.

Approved

boolean

None.

ApprovedBy

integer

None.

ApprovedDate

date

None.

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "UserID": 2,
  "CourseID": 3,
  "CourseName": "sample string 4",
  "CreateDate": "2020-11-25T22:08:07.4373046+03:30",
  "JalaliCreateDate": "sample string 6",
  "LikeComment": 7,
  "DisLikeComment": 8,
  "Approved": true,
  "ApprovedBy": 10,
  "ApprovedDate": "2020-11-25T22:08:07.4373046+03:30",
  "Comment": "sample string 1",
  "Rating": 64
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.