public async Task AddAsync(string name, Document document = null) { Guard.ValidFileName(name, nameof(name)); var model = new DocumentFileModel(await DocumentFile.CreateNewAsync(name, document), dialogService); allFiles.Insert(0, model); }