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);
Laxmidhar SahooPosted Apr 2, 2019, 12:41 AM
Rajkiran SwainPosted Apr 1, 2019, 3:07 PM