diff options
Diffstat (limited to 'Project-Unite/Controllers/APIController.cs')
| -rw-r--r-- | Project-Unite/Controllers/APIController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ namespace Project_Unite.Controllers 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 |
