I am trying to use UpdateModel in a class other than my controller and it doesn’t work. When I call UpdateModel in my controller class it works perfectly. The references are the same in both classes.
Would someone please help me out on this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Unfortunately this is not a reference issue. Your controller inherits from
Controllerwhich has a virtualUpdateModelmethod. This allows you to call the method in a derived class. This method will only be available in other types that inherit fromControllerand in instances ofControlleritself.