I have the following code:
var latest = _containerClient.GetBlobs(prefix: path).OrderByDescending(m => m.Properties.LastModified).ToList().First();
var name = latest.Name;
If the path doesn't exist, I see the error: Sequence contains no elements
How do I handle this error so that if there are blobs, return error string?