I want to add new record by codefirst.
I have 2 tables. material_tbl and DailyDetail_tbl. In DailyDetail_tbl, we enter amount of material which buy everyday.
I wants that user see the field material_name instead of material_id.
In this case, I must use from ViewModel.
I study and do many things for do it. But i couldn’t do it.
Please tell me all things step by step. From creating model until ViewModel and code of controller and view and …
Thanks very much
What I have tried:
I don't know what should i do?