useless check

This commit is contained in:
Paul Schneider 2018-12-23 21:13:31 +00:00
commit 9ff6dc7503

View file

@ -1,9 +1,8 @@
@model ApplicationUser
@if (Model!=null) {
<div class="userinfo">
<h3>@Component.Invoke("Avatar", Model.Id, ".s")</h3>
@if (Model.Posts!=null && Model.Posts.Count()>1) { <a asp-controller="Blogspot" asp-action="UserPosts"
asp-route-id="@Model.UserName" class="btn btn-primary">@SR["index de ses articles"]</a>
}
</div>}
</div>