Exemplo n.º 1
0
        public ActionResult Edit(JusticaVM model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            auxiliaresAppServices.Atualizar(model);
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        public ActionResult Edit(OrgaoVM model)
        {
            if (!ModelState.IsValid)
            {
                MontarViewBags();
                return(View(model));
            }

            auxiliaresAppServices.Atualizar(model);
            return(RedirectToAction("Index"));
        }