Esempio n. 1
0
        public async Task <ActionResult> GetLookupAccounts()
        {
            List <AccountLookup> list = new List <AccountLookup>();
            AccountLookupRepo    accountLookupRepo = new AccountLookupRepo();

            list = await accountLookupRepo.GetProtalLogingAccount("");

            return(Json(list, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
        public async Task <ActionResult> GetOnlyBilling(string Name)
        {
            List <AccountLookup> list = new List <AccountLookup>();
            AccountLookupRepo    accountLookupRepo = new AccountLookupRepo();

            list = await accountLookupRepo.GetProtalLogingAccount("");

            var filterList = list.Where(s => s.AccountName == Name).Select(x => new { billing = x.BillingMethod }).ToList();

            return(Json(filterList, JsonRequestBehavior.AllowGet));
        }