I am trying to build a web application using ASP.NET Core Web API and MVC with Razor views.
Here is my code for the TopicController:
  public async Task'<'IResult'>' Index()
  {
      return Results.Ok(await _Data.GetAllTopics());
  }
Output of this controller is:
{ 
    "value": [
                 { 
                   "id": 1,
                   "topicName": "ACCESS MODIFIER",
                   "videoName": null,
                   "videoURL":null
                 },
                 {
                   "id": 2,
                   "topicName": "GENERICS",
                   "videoName": null,
                   "videoURL": null
                 }
             ],
    "statusCode": 200,
    "contentType": null
}
I am able display data if the return type of Index() is IActionResult for a complex object. But not sure how to interpret result from above Index() function.
I am new to front end, any help would be appreciated.
 
     
    