public async Task <ActionResult> GetAccountDetail(string accountId) { AccountListRepo accountListRepo = new AccountListRepo(); AccountModel model = new AccountModel(); var data = await accountListRepo.GetAccountDetail(accountId); return(Json(data, JsonRequestBehavior.AllowGet)); }
public async Task <ActionResult> AccountDetail(string AccountId) { AccountListRepo accountListRepo = new AccountListRepo(); AccountModel model = new AccountModel(); model = await accountListRepo.GetAccountDetail(AccountId); //Get Suburbs pickListServices = new PicklistServicecs(); model.PropertySuburbList = pickListServices.GetPickListItems("H_Suburbs"); model.PropertySuburbList.Insert(0, new PicklistItem()); //Get Suburbs PropertyStateList = new PicklistServicecs(); //model.BillingMethods = pickListServices.GetPickListItems("Honan Billing Method"); model.BillingMethods = new List <PicklistItem>(); model.BillingMethods.Add(new PicklistItem() { Text = "Per Hour", Code = "Per Hour" }); model.BillingMethods.Add(new PicklistItem() { Text = "Per Claim", Code = "Per Claim" }); model.BillingMethods.Add(new PicklistItem() { Text = "Per Annum", Code = "Per Annum" }); model.BillingMethods.Add(new PicklistItem() { Text = "No Billing", Code = "No Billing" }); //model.BillingMethods.Insert(0, new PicklistItem()); //Get Billing Methods PropertyStateList = new PicklistServicecs(); model.AccountType = pickListServices.GetPickListItems("Account Type"); model.AccountType.Insert(0, new PicklistItem()); ViewBag.AccountId = AccountId; return(View(model)); }