Click here to Skip to main content
16,015,481 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am doing development for a payment screen using asp.net mvc, I have a PaymentModel and want to
use a custom model binder, can someone help me how to implement a custom model binder? Thanks in advance.

Here is model class:

SQL
public class PaymentModel
{
    public JobPayment JobPayment {get;set;}

}

Public class JobPayment
{
    public decimal InstallCharge {get;set;}
    public CreditCard creditcard {get;set;}

}

Public class creditCard
{
    public string NameOnCard {get;set;}
    public string AccountNumber {get;set;}
    public Date ExpirationDate {get;set;}

}
Posted
Comments
Karthik_Mahalingam 29-Apr-15 0:01am    
need more info.

1 solution

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