public ActionResult <Quote> AddQuote(Quote quoteToAdd) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } // instead of accepting a new id from the user, generate our own GUID //quoteToAdd.Id = Guid.NewGuid(); _context.AddQuote(quoteToAdd); return(CreatedAtAction(nameof(GetQuote), new { id = quoteToAdd.Id }, quoteToAdd)); }