コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }