thx for reply Kris.I
i get that part its ok. before i used to have a repository for all my classes, now i only use one for customer eaven if customer got 4list(that would mean 4 repositories).
so what i used to do is i got the CustomerUser by id and updated it throught its own repository.
like
var customerUser = objectFactory.Getinstance<CustomerUserService>().GetById(4);
customerUser.Email = email;
customerUser.Password = password;
objectFactory.GetInstance<CustomerUserService>().SaveOrUpdate(customerUser);
now i only got the customer repository. so when i add a customerUser to the customer i do like
Customer.CustomerUser.Add(customerUser);
so i want code so i can update the customerUser in kinda the same way if you know what i mean? something like
var customer = objectFactory.Getinstance<CustomerService>().GetById(4);
customer.customerUser.where(i => i.Id == id);
but im not sure how this is done correctly.. hope i been clear on how i want it to be done