I scratch my head why this does not work:
@if (Model.Guid != null) { Html.ActionLink("Fil", "GetFile", new { id = Model.DocumentID }); }
The conditional itself works like putting som random HTML in it instead of actionlink:
@if (Model.Guid != null){<span>Test</span>}
Similarly, the actionlink on it independently renders without problems.
Can someone tell me what is happening here?
source share