Ejemplo n.º 1
0
        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;
            }
        }
Ejemplo n.º 2
0
        // 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));
        }
Ejemplo n.º 3
0
        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;
            }
        }
Ejemplo n.º 4
0
        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;
            }
        }