Click here to Skip to main content
15,897,891 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
What is the best way to create model in MVC Application ?

Suppose we have User Master Table for two task : Login and change password.

Please suggest whether i should create two seperate model for login and change password or can continure with single model.

Please tell me which is best approach ?
Posted

1 solution

You don't need to maintain two models here. You can do this by using the single domain model. Normally, model represents the database Table on your relational database. Since you're maintaining single table for store users' data you can handle above business by using the single domain model.
 
Share this answer
 
Comments
Bala Selvanayagam 14-Jan-14 1:51am    
On a separate note, thanks for sharing the Book Review : Knockout.js Succinctly
Sampath Lokuge 14-Jan-14 1:57am    
Thanks Bala. Glad to hear that you enjoyed it :)

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