I would recommend that you start with one of the
Web API Tutorials to get the basics and understanding of the technologies in use.
Tutorial: Create a web API with ASP.NET Core | Microsoft Docs[
^]
Once you get an understanding and have all of your business rules worked out, you are going to have two simple classes similar to this
public class Test {
public int ID { get; set; }
public int TestId { get; set; }
public string Status { get; set; }
public List<TestQuestion> Questions { get; set; }
}
public class TestQuestion {
public int Qid { get; set; }
public string Question { get; set; }
public string Remarks { get; set; }
}
There are a few things that still need to be determined, such as how you what method are you going to talk to the database with- as is would be good for
Entity Framework Code First.
Oh, one last thing; the sample JSON you posted is invalid- the second question should be wrapped in curly brackets as well.