/// <summary> /// Gets the header for Order history control header. /// </summary> /// <param name="orderCount">Indicates the amount of orders shown (per page or total depending on the value of ShowPaging parameter).</param> /// <param name="showPaging">Indicates whether paging should be displayed.</param> /// <param name="orderDetailsUrl">Indicates the Url of the order details.</param> /// <returns> /// Order history control header markup. /// </returns> public static MvcHtmlString GetOrderHistoryControlHeader(int orderCount, bool showPaging, string orderDetailsUrl) { string htmlContent; using (OrderHistory orderHistory = new OrderHistory()) { orderHistory.OrderCount = orderCount; orderHistory.ShowPaging = showPaging; orderHistory.OrderDetailsUrl = orderDetailsUrl; htmlContent = orderHistory.GetHeaderMarkup(); } return(MvcHtmlString.Create(htmlContent)); }