I received the following error message:
Compiler Error Message: CS0746: Invalid anonymous type member declarator. Anonymous type members must be declared with a member assignment, simple name or member access.
from the following line:
<a href="@Url.Action((string)ViewBag.RequeryAction, (string)ViewBag.Vertical, new { filters.size ="medium"})
How can I pass the filter properties to the controller?
I have defined the following types:
class Filters {
string Layout;
` bool onlyBlack
}
class Image {
Filters filter;
double height;
}