diff --git a/Project-Unite/Controllers/APIController.cs b/Project-Unite/Controllers/APIController.cs index 6aae4ab..3ddb69a 100644 --- a/Project-Unite/Controllers/APIController.cs +++ b/Project-Unite/Controllers/APIController.cs @@ -15,7 +15,7 @@ public class APIController : Controller public ActionResult GetRandomQuote() { var db = new ApplicationDbContext(); - var quotes = db.Quotes.ToArray(); + var quotes = db.Quotes.Where(x=>x.IsApproved).ToArray(); if (quotes.Length == 0) { return Content(Serializer.Serialize(new Quote