TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Guest User
Tech Writer
98
42.4k
Consume API with parameter on POST
Jan 23 2021 2:33 PM
Using the code below I try to consume an API but I don't how to pass the parameter to post or save the model.
What code should I write?
var product =
new
List<ProductModel>();
var client =
new
RestClient($
"https://localhost:77321/Product/Create"
);
var request =
new
RestRequest(Method.POST);
IRestResponse response = await client.ExecuteAsync(request);
Reply
Answers (
3
)
Disable browser 'Save Password' functionality
asp.net core selectlist to show multiple text values