public IActionResult SearchUser([FromQuery] List <string> tags, [FromQuery] bool wantToTeach, [FromQuery] TeacherExperience teacherExperience, [FromQuery] UserExperience userExperience, [FromQuery] string name = "") { var foundUsers = _userFacade.FindUser(name, wantToTeach, tags, (int)teacherExperience, (int)userExperience); var items = new List <UserFilterResponse>(); foundUsers.ToList().ForEach(u => items.Add(new UserFilterResponse(u.Id, u.UserProfile.Name, u.UserProfile.Email, u.UserProfile.AvatarLink, u.UserProfile.IsTeacher, u.TeacherProfile, u.IsActive, u.UserProfile.Gender, u.UserProfile.BirthYear))); var response = new MinUserFilterResponse(items); return(Ok(response)); }