// // GET: /User/ public ActionResult Index() { List <User> usersBll = queryService.GetAllUsers().ToList(); List <ShowUserInfo> usersWeb = new List <ShowUserInfo>(); foreach (var user in usersBll) { ShowUserInfo temp = new ShowUserInfo { Name = user.Name, Email = user.Email, Pass = user.Password, RoleName = user.Role.Name }; usersWeb.Add(temp); } return(View(usersWeb)); }