Exemplo n.º 1
1
        public ActionResult Create(CashDrawer item)
        {
            if (!ModelState.IsValid)
                return PartialView ("_Create", item);

            item.Store = Store.Find (item.StoreId);

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

            return PartialView ("_CreateSuccesful", item);
        }
Exemplo n.º 2
0
        public ActionResult Create(CashDrawer item)
        {
            if (!ModelState.IsValid)
            {
                return(PartialView("_Create", item));
            }

            item.Store = Store.Find(item.StoreId);

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

            return(PartialView("_CreateSuccesful", item));
        }