I want to have 2 models in one view. The page contains both LoginViewModel and RegisterViewModel.
LoginViewModel
RegisterViewModel
e.g.
pub
Create one new class in your model and properties of LoginViewModel and RegisterViewModel:
public class UserDefinedModel() { property a1 as LoginViewModel property a2 as RegisterViewModel }
Then use UserDefinedModel in your view.
UserDefinedModel