I am getting error: object reference not set to an instance of an object in this line of code in my Controller class method:
var ChangeEmailUrl = Url.Action("ChangeEmailConfirmation", "ManageAccount");
My objective is to get a URL path to an action 'ChangeEmailConfirmation' in controller 'ManageAccount'. The string link returned by the Url.Action() method would be sent in an email.
Also, I would like to know if there is any other way to get URL link. Any light on solving this problem would be appreciated.