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