public async Task <ActionResult> GetClaimList(bool myclaimsOnly, string isopenClaim, string claimType, string searchText, string cutomerId, string associate) { try { ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin]; string UserId = client.UserId; List <ClaimListModel> list = new List <ClaimListModel>(); ClaimListRepo protalLoginAccountsRepo = new ClaimListRepo(); if (string.IsNullOrEmpty(searchText)) { list = await protalLoginAccountsRepo.getClaimList(UserId, myclaimsOnly, isopenClaim, claimType, searchText, cutomerId, associate); } else { list = await protalLoginAccountsRepo.getClaimListSearchTextOnly(UserId, searchText); } return(Json(list, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { throw ex; } }
// 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; } }