예제 #1
0
 /// <summary>
 /// Returns all users
 /// </summary>
 /// <returns>List of class User</returns>
 public List<User> GetAllUsers()
 {
     using (BowlingJackpotRepository rep = new BowlingJackpotRepository())
     {
         return rep.GetAllUsers();
     }
 }
예제 #2
0
 private static User GetUser(int index)
 {
     using (BowlingJackpotRepository rep = new BowlingJackpotRepository())
     {
         return rep.GetAllUsers()[index];
     }
 }