Esempio n. 1
0
        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));
            }
        }