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
Manoj
NA
90
11.4k
Cannot deserialize the current JSON object
Apr 1 2019 12:45 PM
Hello,
Line 18 generates an error " Cannot deserialize the current JSON object".
I have 2 projects in a solution. Project 1 is MVC that need to use data from 2nd webapi project.
Waiting for your quick help,
Thanks
I have attched screenshots.
Line 16: IEnumerable<mvcEmployeeModel> empList;
Line 17: HttpResponseMessage response = GlobalVariables.WebApiClient.GetAsync("Employee").Result;
Line 18: empList = response.Content.ReadAsAsync<IEnumerable<mvcEmployeeModel>>().Result;
Line 19:
Line 20: return View(empList);
Attachment:
webApi.zip
Reply
Answers (
2
)
how to generate multi language api s
How to send excel file through WEB API.