Exemple #1
0
        public ActionResult Create(Expense item)
        {
            if (!ModelState.IsValid)
            {
                return(PartialView("_Create", item));
            }

            using (var scope = new TransactionScope()) {
                item.CreateAndFlush();
            }

            return(PartialView("_Refresh"));
        }