79131880

Date: 2024-10-28 02:06:47
Score: 0.5
Natty:
Report link

The correct way is:

invoices = invoices.OrderBy(m => m.Datum).ThenBy(m => m.Rechnungsnummer).ToListAsync();

if (invoices != null && invoices.Count() >= 1)
{
   qry_order = invoices.FirstOrDefault().orderId;
}

We need to check count is greater than or equal to 1.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mayur Lohite