public IActionResult GetArrayObject() { var data = new TestNestedDocumentLevelOneArray { DescriptionOne = "D1", Id = 1, TestNestedDocumentLevelTwoArray = new TestNestedDocumentLevelTwoArray[] { new TestNestedDocumentLevelTwoArray { DescriptionTwo = "D2", Id=1, TestNestedDocumentLevelOneArray = new TestNestedDocumentLevelOneArray{ Id=1, DescriptionOne="D1", TestNestedDocumentLevelTwoArray = new TestNestedDocumentLevelTwoArray[] { new TestNestedDocumentLevelTwoArray { DescriptionTwo="D1", Id=1 } } }, TestNestedDocumentLevelThreeArray = new TestNestedDocumentLevelThreeArray { DescriptionThree = "D3", Id=1, TestNestedDocumentLevelFourArray = new TestNestedDocumentLevelFourArray[] { new TestNestedDocumentLevelFourArray { DescriptionFour="D4", Id=1, TestNestedDocumentLevelThreeArray = new TestNestedDocumentLevelThreeArray { DescriptionThree="D3" } }, new TestNestedDocumentLevelFourArray { DescriptionFour="D4", Id=2, TestNestedDocumentLevelThreeArray = new TestNestedDocumentLevelThreeArray { DescriptionThree="D3" } } } } } } }; return Ok(data); }
public IActionResult PostArrayObject(TestNestedDocumentLevelOneArray model) { var data = model; return Ok("created"); }