The following statement is erring in my MVC razor view.
@foreach (var user in Model.Users)
{
<li><a href="#">Add user</a></li>
<li><a href="#">@user.FirstName @user.LastName
if(user.FirstName != "")
{
@(@user.UserName)
}else{
@user.UserName
}
</a></li>
}
I cannot seem to figure out the razor to handle this properly.