Reputation: 553
@if (Model.DonationDetail != null)
{
@Model.DonationDetail.recipient.Count();
}
Is returning
Compiler Error Message: CS1501: No overload for method 'Write' takes 0 arguments
what is the best way to display a count of these items in recipient?
thanks
Upvotes: 0
Views: 8930
Reputation: 76597
Give this a try:
<text> @Html.Encode(Model.DonationDetail.Recipient.Count()) </text>
Upvotes: 2