public IActionResult SearchUserByName([FromRoute] string name) { var foundUsers = _userFacade.FindByName(name); var items = new List <MinItemUserResponse>(); foundUsers.ToList().ForEach(u => items.Add(new MinItemUserResponse(u.Id, u.UserProfile.Name, u.UserProfile.Email, u.UserProfile.IsTeacher, u.IsActive, u.UserProfile.AvatarLink))); var response = new MinUserResponse(items); return(Ok(response)); }