my jsonResult is always have 1+ Invoice (class), If it has 1 Invoice it gives error.
How can I change fromJson <List to have a only 1 class.
If jsonResult has more than 1 Invoice -- no error If jsonResult = 1 Invoice gives error. How can I fix it.
string jsonResult = (await GenericHttpClient.ExecuteAsync(requestModel)).Content;
try
{
return jsonResult.FromJson<List<Invoice>>();
}