示例#1
0
        public async Task <ActionResult> RemoveAsync(Guid discountId)
        {
            if (await _discountValidationService.DiscountExists(discountId) &&
                await _favoritesValidationService.UserFavoritesNotExists(discountId))
            {
                await _favoritesService.RemoveAsync(discountId);

                return(Ok());
            }

            return(NotFound());
        }