public async Task <bool> CopiarAvatarAsync() { CriarDiretorio(); var path = $"{Diretorio}/{Nome}"; using (var bits = new FileStream(path, FileMode.Create)) { await Arquivo.CopyToAsync(bits); return(Directory.Exists(Diretorio)); } }
public async Task <bool> CopiarAvatarAsync() { CriarDiretorio(); var path = $"{Diretorio}/{Nome}"; using (var bits = new FileStream(path, FileMode.Create)) { await Arquivo.CopyToAsync(bits); return(Directory.Exists(Diretorio)); } }