public ActionResult <string> Get() { var tarefas = _tarefaAppService.GetAll(); if (tarefas == null) { return(NotFound()); } return(Ok(tarefas)); }
// GET: Atividades/Create public ActionResult Create() { ViewBag.Pessoa_Id = new SelectList(_pessoaApp.GetAll(), "Id", "Nome"); ViewBag.Tarefa_Id = new SelectList(_tarefaApp.GetAll(), "Id", "Nome"); return(View()); }
public IActionResult BuscarTodasTarefas() { return(Response <IEnumerable <TarefaViewModel> >(_tarefaAppService.GetAll())); }
// GET: Tarefas public ActionResult Index() { var tarefaViewModel = Mapper.Map <IEnumerable <Tarefa>, IEnumerable <TarefaViewModel> >(_tarefaApp.GetAll()); return(View(tarefaViewModel)); }
// GET: Tarefa public ActionResult Index() { return(View(_tarefaAppService.GetAll())); }
// GET: Rest/TarefasRest public JsonResult GetAll() { var tarefas = _TarefaApp.GetAll(); return(Json(tarefas, JsonRequestBehavior.AllowGet)); }
// GET: api/Tarefas public IEnumerable <TarefaViewModel> Get() { return(_tarefaAppService.GetAll()); }