// POST api/accountledger public void Post(AccountLedgerModel a) { AccountLedgerModel model = new AccountLedgerModel(); model.AccountLedgerId = a.AccountLedgerIdPk; model.AccountLegderName = a.AccountLegderName; model.AccountTypeId = a.AccountTypeId; model.CrAmount = a.CrAmount; model.DrAmount = a.DrAmount; model.OpeningBalance = a.OpeningBalance; model.AccountGroupId = a.AccountGroupId; model.IsActive = a.IsActive; int i = AccountLedgerProvider.insertAccountLedger(model); }
// GET api/accountledger public IEnumerable <AccountLedgerModel> Get() { return(AccountLedgerProvider.getAccountLedger()); }