コード例 #1
0
        public async Task <IActionResult> Create([FromBody] CreateFavouriteRequest request)
        {
            var created = await _favouriteService.CreateFavouriteAsync(request.Email, request.ProductId);

            if (!created)
            {
                return(NoContent());
            }

            return(Ok());
        }