コード例 #1
0
        public async Task <IActionResult> GetListFavouriteProducts([FromRoute] string email)
        {
            var response = await _favouriteService.GetFavouriteProductsOfUser(email);

            if (response != null && response.Count > 0)
            {
                return(Ok(response));
            }

            return(NotFound());
        }