Пример #1
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));
        }
Пример #2
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;
            }
        }
Пример #3
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;
            }
        }