Exemplo n.º 1
0
        public ActionResult Index(FiltroFechamentoViewModel filtroFechamento)
        {
            if (ModelState.IsValid)
            {
                TempData["atividades"] = _atividadeApp.RealizaFechamentoSemana(filtroFechamento.Pessoa_Id, filtroFechamento.Data);

                return(RedirectToAction("Fechamento"));
            }

            ViewBag.Pessoa_Id = new SelectList(_PessoaApp.GetAll(), "Id", "Nome");
            return(View(filtroFechamento));
        }
Exemplo n.º 2
0
        // GET: Rest/FechamentoRest
        public JsonResult GetAllOfWeek(DateTime data)
        {
            var atividades = _atividadeApp.RealizaFechamentoSemana(data);

            return(Json(atividades, JsonRequestBehavior.AllowGet));
        }