Esempio n. 1
0
        public IHttpActionResult DeleteOffer(int id)
        {
            OfferModel offer = offersService.DeleteOffer(id);

            if (offer == null)
            {
                return(NotFound());
            }

            return(Ok(offer));
        }
Esempio n. 2
0
        public async Task <ActionResult <ResponseResult <Offer> > > DeleteOffer(Guid offerId)
        {
            var result = await _offersService.DeleteOffer(offerId);

            return(result);
        }