This is great. So, does your viewmodel just have a Department object property and an Employee object property? I'm new to mvc, so the utility of a view model is still unclear.
Logan the view model will need to contain something. Personally, when creating a view model, I'll make getter setters that are for each thing I need to bring to the view page, not necessarily full objects like Department.
Hello Sir! I thank God for finding this video. It solved my previous c# problem. I wish I could treat you some lunch or coffee! God bless you! =D
you can treat me
i get exception that is .... The entity type Students is not part of the model for the current context
how we solve it?
is it work by the navigation properties , explain how ????
Thanks for helped me
thanks! helped me a lot
Thanks a lot sir
This is great. So, does your viewmodel just have a Department object property and an Employee object property? I'm new to mvc, so the utility of a view model is still unclear.
Logan the view model will need to contain something. Personally, when creating a view model, I'll make getter setters that are for each thing I need to bring to the view page, not necessarily full objects like Department.
Awesome
Im wondering the return type of this method .. :(
you are God Thank you
how to call method in controller for web api
Can we do same in windows form applications?
Yes you can do this in windows form applications as well.
Can we do same in MvC ?
I guess this is mvc