public static IEnumerable <UserVM> GetAllUsers() { List <UserVM> list = new List <UserVM>(); foreach (var user in usersLogic.GetAllUsers()) { list.Add((UserVM)user); } return(list); }
private static void ShowAllUsers() { System.Console.WriteLine("List of users:{0}", Environment.NewLine); ViewUsersFromContainer(usersBLL.GetAllUsers().OrderBy(user => user.LastName)); System.Console.ReadLine(); }