πŸ€ Challenge: Implement Custom Query with Repository

Use your existing knowledge to write repository methods that take the name of "type string" as an input parameter and return a list of objects that consist of that name.

We'll cover the following

Requirements

Your application right now only returns users with respect to their IDs. However, this is not helpful as you do not always remember the IDs of different users. Implement a feature that allows you to return users with respect to their names. For instance, you want to allow searching for all users with a specific name.

To keep it simple, you are required to add this functionality in the Controllers/Api/UsersController.cs class but do not add it to the UsersController class which is used to return views.

Expected output

When the mock repository is set in place, passing β€œNeo” via URL should return the following:

Get hands-on with 1200+ tech skills courses.