I want to shorten the code and add multiple items to list at once, I get error.
"No overload method Add taking 2 arguments"
The list has some items added and i want to add new ones
IList
public IList<SelectListItem> Cmsentities { get; set; }
method
Cmsentities.Add(
new SelectListItem
{
Value = "publish",
Text = "nur veröffentlichte"
},
new SelectListItem
{
Value = "nopublish",
Text = "nur nicht veröffentlichte"
});