In my MVC Application View I have
@Html.TextBoxFor(m => m.Email, new { @class = "form-control", @readonly = "readonly" })
I need to remove the readonly-attribute when an if-statement occurs in my Controller. How can I, from the Controller, remove the attribute in the View, or add the attribute if I first remove it from the View and then change my if-statement?