public async Task CreateAsync(UsuarioModel usuarioModel, string base64)
        {
            if (base64 != null)
            {
                var blob = await _blobServices.CreateBlobAsync(base64);

                usuarioModel.FotoPerfil = blob;
            }


            await _usuarioRepository.CreateAsync(usuarioModel);
        }
Exemple #2
0
        public override async Task CreateAsync(PostModel postModel)
        {
            if (postModel.UriImage != null)
            {
                var blob = await _blobServices.CreateBlobAsync(postModel.UriImage);

                postModel.UriImage = blob;
            }

            await _postRepository.CreateAsync(postModel);
        }