Exemplo n.º 1
0
        public async Task <IActionResult> DeleteMarket(long id, long marketId)
        {
            // check if requester is part of the seller
            if (!await _permissionService.UserIsSeller(HttpContext.GetUserIdFromToken(), id))
            {
                return(Forbid());
            }

            return(Ok(await _sellerService.DeleteMarketFromSeller(id, marketId)));
        }