public ActionResult Create(JusticaVM model) { if (!ModelState.IsValid) { return(View(model)); } auxiliaresAppServices.Adicionar <JusticaVM>(model); return(RedirectToAction("Index")); }
public ActionResult Create(OrgaoVM model) { if (!ModelState.IsValid) { MontarViewBags(); return(View(model)); } auxiliaresAppServices.Adicionar <OrgaoVM>(model); return(RedirectToAction("Index")); }