public async Task <IActionResult> OnPost(CatalogItemViewModel productDetails) { if (productDetails?.Id == null) { return(RedirectToPage("/Index")); } await SetWishModelAsync(); await _wishService.AddItemToWish(WishModel.Id, productDetails.Id, productDetails.Price); await SetWishModelAsync(); StatusMessage = "Product was successfull added to your Wish List. Continue buying the hapiness."; return(RedirectToPage("/Index")); }