コード例 #1
0
        public ActionResult <string> Get()
        {
            var tarefas = _tarefaAppService.GetAll();

            if (tarefas == null)
            {
                return(NotFound());
            }

            return(Ok(tarefas));
        }
コード例 #2
0
 // 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());
 }
コード例 #3
0
ファイル: TarefaController.cs プロジェクト: haipk/ProinterV
 public IActionResult BuscarTodasTarefas()
 {
     return(Response <IEnumerable <TarefaViewModel> >(_tarefaAppService.GetAll()));
 }
コード例 #4
0
        // GET: Tarefas
        public ActionResult Index()
        {
            var tarefaViewModel = Mapper.Map <IEnumerable <Tarefa>, IEnumerable <TarefaViewModel> >(_tarefaApp.GetAll());

            return(View(tarefaViewModel));
        }
コード例 #5
0
 // GET: Tarefa
 public ActionResult Index()
 {
     return(View(_tarefaAppService.GetAll()));
 }
コード例 #6
0
        // GET: Rest/TarefasRest
        public JsonResult GetAll()
        {
            var tarefas = _TarefaApp.GetAll();

            return(Json(tarefas, JsonRequestBehavior.AllowGet));
        }
コード例 #7
0
 // GET: api/Tarefas
 public IEnumerable <TarefaViewModel> Get()
 {
     return(_tarefaAppService.GetAll());
 }