예제 #1
0
파일: UserVM.cs 프로젝트: FR-MN/RGR
        public static IEnumerable <UserVM> GetAllUsers()
        {
            List <UserVM> list = new List <UserVM>();

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