我必须使用下拉框创建上述类型的动态 UI。下拉框的值如上所示是固定的。
我的问题是我需要将支付类型下拉框值发送到 mvc 控制器。我需要根据服务键发送选定下拉框的值。我不知道该怎么做。任何想法?
更新
支付类型可以像枚举。如下所示。
public enum PaymentOption
{
[Display(Name = "Select Payment Type")]
None = 1,
[Display(Name = "Service Hourly")]
ServiceHourly = 2,
[Display(Name = "Salary Flat Rate")]
SalaryFlatRate = 3,
[Display(Name = "% of Appointment")]
PercentOfAppointment = 4,
[Display(Name = "Per Appointment")]
PerAppointment = 5,
}