public void UpdateAccount(int userID, int personID, UserDto orderDto, PersDto orderLineDto) { PersonBusiness pb = new PersonBusiness(); pb.UpdateUser(orderLineDto, personID); UserBusiness userBusiness = new UserBusiness(); userBusiness.UpdateUser(orderDto, userID); LoginData.Stop(); }
public void CreateAccount(UserDto userDto, PersDto persDto) { UserBusiness userBusiness = new UserBusiness(); userBusiness.CreateUser(userDto); //userid komt in userdto object PersonBusiness pb = new PersonBusiness(); persDto.Userid = userDto.Userid; persDto.Addressid = 1; //persDto.lan pb.CreatePerson(persDto); LoginData.Stop(); }