public List <Supply> getAllSupplyList() { List <Supply> listSupply = supplyDao.queryAllSupply(); for (int i = 0; i < listSupply.Count; i++) { User user = userDao.queryUserById(listSupply[i].User.Id); listSupply[i].User.NickName = user.NickName; listSupply[i].User.TeleNumber = user.TeleNumber; } return(listSupply); }
public List <Supply> getAllSupplyList() { List <Supply> list = supplyDao.queryAllSupply(); return(list); }