public ActionResult <Quote> GetQuote(int id) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } Quote quote = _context.GetQuote(id); if (quote == null) { return(NotFound()); } return(Ok(quote)); }