public async Task <ActionResult <FileList> > Get(string directory, [FromQuery] string pattern) { var result = await _directories.ListFilesAsync(directory, pattern); return(result ?? (ActionResult <FileList>)NotFound()); }