Exemplo n.º 1
0
        public ActionResult Create([Bind(Include = "ACC_IDE_ACCOUNT,ACC_DES_ACCOUNT")] AccountingAccount accountingAccount)
        {
            if (ModelState.IsValid)
            {
                accountingAccount.ACC_FH_CREATED = DateTime.Now;
                if (_db.Create(accountingAccount))
                {
                    return(RedirectToAction("Index"));
                }
            }

            return(View(accountingAccount));
        }