This is my c# method
public async Task
I have send data in model but (note without model so how to send note field by ajax call)
note = $(".newnote-textarea").val().trim();
var data = new FormData();
data.CreatedOn = strDate;
data.CreatedBy = userids;
data.UserID = userids;
data.ModifiedOn = strDate;
data.ModifiedBy = userids;
data.isActive = true;
data.ActivityID = 3;
data.PublisherID = 5000;
data.OrganizationContactID = publisherData.organization.organizationId;
$.ajax({
type: "POST",
url: apiurl,
dataType: "json",
contentType: "application/json",
data: JSON.stringify(data, note = note),
Sachin SinghPosted Aug 5, 2021, 10:01 AM
Basem AlshabaniPosted Aug 5, 2021, 10:32 AM
The format of parameters sent with a web api call is data:{"param1":param1value,"param2":param2value}
Kiran MohantyPosted Aug 5, 2021, 9:43 AM