What should I do to make The search result return either the input was Upper or lower case? – Asp.net
This Will return only when the user is available at the same case public async Task<IActionResult> Index(string UserSearch) { ViewData["GetUserDDetails"] = UserSearch; var UserQuery = from x in _context.Users select x; if (!string.IsNullOrEmpty(UserSearch)) { UserQuery = UserQuery.Where(x => x.Username.Contains(UserSearch) ||…