From a459ef2302dab61686f96000c1f7911edd9fa4a8 Mon Sep 17 00:00:00 2001 From: jvyden Date: Tue, 19 Oct 2021 19:43:04 -0400 Subject: [PATCH] Allow searching by creator username and slot id --- ProjectLighthouse/Controllers/SearchController.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ProjectLighthouse/Controllers/SearchController.cs b/ProjectLighthouse/Controllers/SearchController.cs index 002bb731..92240c26 100644 --- a/ProjectLighthouse/Controllers/SearchController.cs +++ b/ProjectLighthouse/Controllers/SearchController.cs @@ -31,7 +31,9 @@ namespace ProjectLighthouse.Controllers { foreach(string keyword in keywords) { dbQuery = dbQuery.Where(s => s.Name.ToLower().Contains(keyword) || - s.Description.ToLower().Contains(keyword) + s.Description.ToLower().Contains(keyword) || + s.Creator.Username.ToLower().Contains(keyword) || + s.SlotId.ToString().Equals(keyword) ); }