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)); }
public async Task <ActionResult <QuoteInProg> > UpdateQuoteInProg(QuoteInProg quote) { var updatedQuote = await _quoteInProgRepository.UpdateQuoteInProgAsync(quote); return(Ok(updatedQuote)); }