private async Task getBlockList(User user) { RecommendedListVM vm = getPersistantData <RecommendedListVM>(); vm.blockList = await BlockList.getList(user); setPersistantData(vm); }
public async Task <IActionResult> openBlockedList() { BlockListVM vm = getPersistantData <BlockListVM>(); vm.blockList = await BlockList.getList(Models.User.current); setPersistantData(vm); return(View("~/Offers/Views/BlockedItemCategoryList.cshtml", vm)); }