Exemple #1
0
        public async Task <IActionResult> Delete([FromRoute] string email, [FromRoute] int productId)
        {
            var deleted = await _favouriteService.RemoveFavouriteAsync(email, productId);

            if (!deleted)
            {
                return(NotFound());
            }

            return(Ok());
        }