public async Task <ReadOnlyQuote> CreateQuote(string phrase, string attribution) { var currentTime = DateTimeOffset.UtcNow; var entity = new Quote { Phrase = phrase, Attribution = attribution, CreatedAt = currentTime, UpdatedAt = currentTime }; _dbContext.Quotes.Add(entity); await _dbContext.SaveChangesAsync(); return(entity.AsReadOnly()); }