Exemple #1
0
        public async Task <Quote> GetQuoteAsync(int quoteId)
        {
            var QuoteEntity = await QuotesRepository.GetQuoteAsync(quoteId);

            if (QuoteEntity == null)
            {
                throw new NotFoundItemException("Product not found");
            }
            return(mapper.Map <Quote>(QuoteEntity));
        }