Ejemplo n.º 1
0
        public virtual ActionResult Create(Cats.Models.Hubs.Ledger ledger)
        {
            if (ModelState.IsValid)
            {
                _ledgerService.AddLedger(ledger);
                return(Json(new { success = true }));
            }

            //ViewBag.HubOwnerID = new SelectList(_ledgerService.GetAllLedger().OrderBy(l=>l.Name), "Name", "LedgerType", ledger.LedgerID);
            return(PartialView(ledger));
        }