public async Task Delete(Guid id) { var scheduling = await _schedulingRepository.GetAsync(id); if (scheduling is null) { Notify("Dados do Agendamento não encontrado."); return; } scheduling.Delete(); _schedulingRepository.Update(scheduling); if (await CommitAsync() is false) { Notify("Erro ao salvar dados."); } }