Skip to content

Commit

Permalink
Extend search functionality in PhoneBookController
Browse files Browse the repository at this point in the history
  • Loading branch information
shashinma committed Jan 22, 2024
1 parent 8c4415f commit 5bbcf7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Controllers/PhoneBookController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public async Task<IActionResult> Index(string searchString, string currentFilter
{
entriesQuery = entriesQuery.Where(e =>
e.Name.Contains(searchString) ||
e.Mail.Contains(searchString) ||
e.Room.Contains(searchString) ||
e.LocalPhoneNumber.Contains(searchString) ||
e.PersonnelNumber.Contains(searchString));
}

Expand Down

0 comments on commit 5bbcf7b

Please sign in to comment.