I have a View that displays a "grid" of all the Payments, which works fine.
Now, I would like to also add an additional dropdown to that View with the list of the Merchants.
How should I go about it? Add another field in my PaymentViewModel to have a list of the Merchants? Create two models? Can I create a partial view for just the dropdownlist and bind it another model?
I'm new to MVC so any thoughts are welcome.
Payments.cshtml
@model IEnumerable<MVC.Web.Models.PaymentsViewModel>
PaymentsViewModel.cs
public int PaymentID { get; set; }
public string Merchant { get; set; }
@Html.DropDownListFor(x=> x.Merchant ...);throughout the app without creating separate views.