Пример #1
0
        public ActionResult Create(JusticaVM model)
        {
            if (!ModelState.IsValid)
            {
                return(View(model));
            }

            auxiliaresAppServices.Adicionar <JusticaVM>(model);
            return(RedirectToAction("Index"));
        }
Пример #2
0
        public ActionResult Create(OrgaoVM model)
        {
            if (!ModelState.IsValid)
            {
                MontarViewBags();
                return(View(model));
            }

            auxiliaresAppServices.Adicionar <OrgaoVM>(model);
            return(RedirectToAction("Index"));
        }