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