Exemple #1
0
        public async Task <IActionResult> AddToWishList(int id)
        {
            var user = await GetCurrentUserAsync();

            var userId = user?.Id;

            if (userId == null)
            {
                return(Json("NotLoggedIn"));
            }
            else
            {
                _accountServices.AddToWishList(id, userId);
                return(Ok());
            }
        }