Example #1
0
        public async Task <int> getCount(List <int> selectedFilters)
        {
            var token   = (string)Session["token"];
            var userId  = (int)Session["userId"];
            var request = new Request();

            request.SelectedFilters = selectedFilters;
            request.UserId          = userId;

            var countVal = await caller.PostWithAuthorization2 <Request, int>(apiMethods.FiltersBaseUrl(), apiMethods.getCountAndSaveDataMarketListInProgresController, userId, request, token);

            Session["countVal"] = countVal;
            return(countVal);
        }