S
shapper
Hello,
I have the following:
_context.Documents.Where(a => a.Id == id).FirstOrDefault();
Should I use:
_context.Documents.FirstOrDefault(a => a.Id == id);
Or:
_context.Documents.First(a => a.Id == id);
What are the differences?
Thank You,
Miguel
I have the following:
_context.Documents.Where(a => a.Id == id).FirstOrDefault();
Should I use:
_context.Documents.FirstOrDefault(a => a.Id == id);
Or:
_context.Documents.First(a => a.Id == id);
What are the differences?
Thank You,
Miguel