public void AddNewUser() { try { var userDao = new AuctionUserDao(); var user = new AuctionUser() { FirstName = FirstNameList[rand.Next(0, FirstNameList.Length)], LastName = LastNamesList[rand.Next(0, LastNamesList.Length)], IsStudent = rand.NextDouble() < 0.5 ? true : false }; userDao.NewUser(user); } catch { } }
public AuctionUser NewAuctionUser(AuctionUser inUser) { var userDao = new AuctionUserDao(); return(userDao.NewUser(inUser)); }