У меня есть эти классы
public class CryptocurrencyDto
{
public int RequestId { get; set; }
public IEnumerable<Cryptocurrency> Cryptocurrencies { get; set; }
}
public class Cryptocurrency : BaseClass
{
public string Ticker { get; set; }
public string Name { get; set; }
public double TotalSupply { get; set; }
public double CirculatingSupply { get; set; }
public IEnumerable<Note> Notes { get; set; }
}
public class Note
{
public int NoteId { get; set; }
public string Description { get; set; }
public IEnumerable<Url> Urls { get; set; }
public byte Image { get; set; }
public int DisplayOrder { get; set; }
}
public class Url
{
public string UrlId { get; set; }
public string Link { get; set; }
public string Description { get; set; }
}
У меня есть эта конечная точка
[HttpPost]
public void Post([FromBody] CryptocurrencyDto cryptocurrency)
{
}
Как я могу проверить через эти классы? Пока я знаю только, как проверить первый класс CryptocurrencyDto
. Я не знаю, как добраться до других классов. Криптовалюта, Примечание и URL.