Click here to Skip to main content
15,880,608 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,
I have an FeePlan model, which in turn holds the list of Transaction and Interaction models.
public class FeePlanModel
{
  public string FeePlanDesc { get; set; }
  public int FeePlanID { get; set; }
  public List<InteractionFeeLookUpViewModel> InteractionFeeLookUpViewModel { get; set; }
  public List<TransactionFeeLookUpViewModel> TransactionFeeLookUpViewModel { get; set; }
}

In my view it refers FeePlan model, I have radio button Transaction & Interaction.

Few properties of both this 2 model are same and rest differs.

Based on what user selects radio button, I want to bind either of the 2 model to the controls of the view that differs in properties and what user fills in the form is populated in that respective model.

Any idea?

Thanks in advance
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900