private void DadosAutomaticos() { servicoConta = new ContaService(); servicoTarefa = new TarefaService(); Tarefas = new ObservableCollection <Model.Tarefa>(servicoTarefa.ObterTarefasDoUsuarioLogado(false).Where(c => c.Situacao == "Atrasada")); NomeUsuario = "Bem vindo, " + servicoConta.ObterUsuarioPorIdLogado().NomeUsuario; }
public ObservableCollection <Model.Tarefa> ListarTarefas() { servicoTarefa = new TarefaService(); Tarefas = new ObservableCollection <Model.Tarefa>(servicoTarefa.ObterTarefasDoUsuarioLogado()); return(Tarefas); }