// GET: ClaimList public async Task <ActionResult> Index() { ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin]; string UserId = client.UserId; List <CustomerModel> list = new List <CustomerModel>(); CustomerListModel CustomerList = new CustomerListModel(); ClaimListRepo protalLoginAccountsRepo = new ClaimListRepo(); list = await protalLoginAccountsRepo.GetCustomerList(UserId); CustomerList.CustomerList = list; return(View(CustomerList)); }
private async Task <List <CustomerModel> > getCustomerList(string userId) { try { List <CustomerModel> list = new List <CustomerModel>(); ClaimListRepo protalLoginAccountsRepo = new ClaimListRepo(); list = await protalLoginAccountsRepo.GetCustomerList(userId); return(list); } catch (Exception) { throw; } }
public async Task <ActionResult> GetCustomerList() { try { ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin]; string UserId = client.UserId; List <CustomerModel> list = new List <CustomerModel>(); ClaimListRepo protalLoginAccountsRepo = new ClaimListRepo(); list = await protalLoginAccountsRepo.GetCustomerList(UserId); return(Json(list, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw ex; } }