I have following classes in application and are used to in same UI.
1. ClientObjects 2. ClientObject
3. ClientSiteObjects 4. ClientSiteObject
ClientObjects is collection of type ClientObject and same way ClientSiteObjects is collection of type ClientSiteObject. Class ClientObject and ClientSiteObject contains same information but needs to be seperate classes.
In UI (.aspx.cs file) user can select Client or Client and Client Site to enter some information. How can i create an object, say infoObject, that should be common for both cases. If user selects only Client and not Client Site, infoObject should be of type ClientObject. When user select Client and Client Site infoObject should be of type ClientObject. I tried to do write it this way
if (Only Client Selected) Go to the complete details ...