public async Task Adicionar(Album album) { if (!ExecutarValidacao(new AlbumValidation(), album)) { return; } await _albumRepository.Adicionar(album); }
public async Task <bool> Adicionar(Album album) { if (!ExecutarValidacao(new AlbumValidation(), album)) { return(false); } await _albumRepository.Adicionar(album); return(true); }