public async Task <IActionResult> Index() { string userName = HttpContext.Session.GetString("username"); int customerProfileId = (await _customerProfileService.CustomerProfile(userName)).CustomerProfileId; IEnumerable <ClaimWithPromotionAndShopInfo> cwpasis = await _claimService.RetrieveClaimsWithPromotionAndShopInfoByCustomerProfileIdAsync(customerProfileId); ClaimViewModel claimViewModel = new ClaimViewModel { ClaimExtraInfoListDto = cwpasis }; return(View(claimViewModel)); }
public async Task <IActionResult> ViewRecommendation() { var username = HttpContext.Session.GetString("username"); return(View(await _customerProfileService.CustomerProfile(username))); }
public async Task <IActionResult> SuccessfulCustomerClick(CustomerProfileViewModel customerProfileViewModel) { CustomerProfiles resultSet = await _customerProfileService.CustomerProfile(customerProfileViewModel.customerEmail); return(View("SuccessCustomerClick", resultSet)); }