Example #1
0
        public async Task <QuoteInProg> UpdateQuoteInProgAsync(QuoteInProg quote)
        {
            var created = await _database.StringSetAsync(
                quote.Id,
                JsonConvert.SerializeObject(quote),
                TimeSpan.FromDays(30)
                );

            if (!created)
            {
                return(null);
            }
            return(await GetQuoteInProgAsync(quote.Id));
        }
Example #2
0
        public async Task <ActionResult <QuoteInProg> > UpdateQuoteInProg(QuoteInProg quote)
        {
            var updatedQuote = await _quoteInProgRepository.UpdateQuoteInProgAsync(quote);

            return(Ok(updatedQuote));
        }