I am trying to use the nullable datetime and double value as a parameter for an actionfilter, but it gives the following error:
'Propertyname' is not a valid attribute name argument because it is not a valid attribute parameter type
I thought a quick google would solve it, but to my surprise I could not find much information about this.
Here is the code for my filter.
public class AddToSitemap : ActionFilterAttribute
{
public string Changefreq { get; set; }
public DateTime? Lastmod { get; set; }
public double? Priority { get; set; }
}
Thanks in advance.
source
share