Hi,
I have an update address page, which gets loaded with address details of logged in user. The user can have either same billing and shipping address or different billing and shipping address. Scenario one: If the user had previously saved two addresses, (diff. billing and shipping addresses) and he ticks the checkbox to say that his billing and shipping address is the same. Scenario two: If the user had previously given one address as same for billing and shipping and now adds a new billing address.
How would I tell nhibernate to delete the second address in scenario one and update the changes in the first address How would I code nhibernate to add a new address in scenario two?
Thanks for your help. I am new to nhibernate and this is a complex situation. Please let me know if you need to see the code.
|