I am confused as to how to implement the following in my current foreach:
@foreach
(var post in Model."table".Where(w => w.Private_ID == 1).OrderBy(o => o.Date))
{
<div class ="post">
<fieldset>
<p class="post_details">At @post.Post_Date By @post.Username</p>
@post.Post_Desc
</fieldset>
</div>
}
so that post.Username will NOT show if @post.anon is TRUE (and so that it will say "Anonymous")
Thanks in advance for any advice/help/suggestions.