<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %> <% if (!Model.ShouldShowMenu) { return; } %>

<% if (Model.CurrentPageIsValid) { %> Showing <%= Model.Start%>—<%= Model.ActualEnd%> of <%= Model.TotalCount%>. <% } else { %> Nothing to show of <%= Model.TotalCount%>. <% } %>