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 empList;
Line 17: HttpResponseMessage response = GlobalVariables.WebApiClient.GetAsync("Employee").Result;
Line 18: empList = response.Content.ReadAsAsync>().Result;
Line 19:
Line 20: return View(empList);

Rajkiran SwainRank #165 · 14.4K reputationPosted Apr 1, 2019, 11:07 AM EDT
Laxmidhar SahooRank #383 · 6.6K reputationPosted Apr 1, 2019, 8:41 PM EDT