I have created a helper method in view like this:
@helper DisputeOpenedDays(DateTime createdDate)
{
TimeSpan difference = DateTime.Now.Subtract(createdDate);
string.Format("0", difference.Days);
}
and when I use it in view like this
@DisputeOpenedDays(myobj.CreatedAt)
It doesnt print any thing
Try:
The curly braces are missing.