Exemplo n.º 1
0
        public User GetLoadAdress(int id, AdressManager adressManager, PostalcodeManager postalcodeManager)
        {
            User user = Get(x => x.id == id);

            if (user != null)
            {
                user.Adress = adressManager.GetLoadPostalCode(user.Adressid, postalcodeManager);
            }
            return(user);
        }
Exemplo n.º 2
0
        public ICollection <User> GetAllLoadAdress(AdressManager adressManager, PostalcodeManager postalcodeManager)
        {
            var users = GetAll();

            ((List <User>)users).ForEach(item =>
            {
                item.Adress = adressManager.GetLoadPostalCode(item.Adressid, postalcodeManager);
            });
            return(users);
        }