Monday, 30 September 2013

if list returns empty display message

if list returns empty display message

Using MVC I am passing a list 'Projects' to the view
@if (Model.Projects != null && Model.Projects.Count > 0)
{
<fieldset>
<table class="items" summary="@T("This is a table of the delivery Runs
in your application")">
<colgroup>
}
else
{
//no data available
}
Model.Projects.Count > 0 is saying operator > cant be applied to opeards
of type 'method group' and 'int'

No comments:

Post a Comment