Esempio n. 1
0
        public async Task <IActionResult> Get([FromRoute] Int64 offerId)
        {
            var Offer = await _OffersService.GetOffersByIdAsync(offerId);

            if (Offer == null)
            {
                return(NotFound(new ErrorResponse
                {
                    message = "Not Found",
                    status = NotFound().StatusCode
                }));
            }

            return(Ok(Offer));
        }