public IActionResult Index() { List <Tarefa> tarList = new List <Tarefa>(); tarList = tarefaDAL.GetTarefas().ToList(); return(View(tarList)); }
private void AtualizaListaTarefas() { Tarefas = new ObservableCollection <Tarefa>(TarefaDAL.GetTarefas()); OnPropertyChanged("Tarefas"); }
public void AtualizarLista() { TelaVM.Tarefas = new ObservableCollection <Tarefa>(TarefaDAL.GetTarefas()); TelaVM.OnPropertyChanged("Tarefas"); }