public async Task CreateAsync(UsuarioModel usuarioModel, string base64) { if (base64 != null) { var blob = await _blobServices.CreateBlobAsync(base64); usuarioModel.FotoPerfil = blob; } await _usuarioRepository.CreateAsync(usuarioModel); }
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); }