Hello,
I am trying to use a nullable datetime and double as a parameter for an actionfilter but it's gives the following error:
'Propertyname' is not a valid named attribute argument because it is not a valid attribute parameter type
I thought a quick google would solve it but to my surpise I couldn't find a lot of info about it.
Here is the code of my filter.
public class AddToSitemap : ActionFilterAttribute
{
public string Changefreq { get; set; }
public DateTime? Lastmod { get; set; }
public double? Priority { get; set; }
}
Thanks in advance.