public ActionResult Index(InfoCaixa item) { try { if (ModelState.IsValid) { service.Gravar(item); return(Json(new { success = true })); } return(View(item)); } catch (Exception e) { return(Json(new { success = false, error = e.Message })); } }
// GET: Erp/InfoCaixa public ActionResult Index() { InfoCaixa item = info.GetInfoCaixa(GetIdEmpresa(), GetIdUsuario()); return(View(item)); }