Error is pretty clear, View requires the
AdminModel
& You're passing the
LoginModel
.
What you can do is, combine those two models in one and pass that one model only to the view.
For example,
public class UserViewModel
{
public AdminModel adminModel;
public LoginMode loginModel;
}
-KR