Cannot convert lambda expression to type 'system.func<object, object>[]' because it is not a delegate type

362 views
Skip to first unread message

Lisa Sims

unread,
Oct 4, 2011, 10:46:22 AM10/4/11
to mvccontrib-discuss
column.For(p => p.Status).Attributes(p=>{
if (p.Status == "OPEN" && p.Cat == 1 && p.DateReported <
DateTime.Now.AddMonths(-1))
{
return new Dictionary<string, object> {"style", "color:red"};
}

else if (p.Status == "OPEN" && p.Cat == 1 && p.DateReported <
DateTime.Now.AddDays(-14))
{
return new Dictionary<string, object> {"style", "color:orange"};
}
return new Dictionary<string, object>();

Lisa Sims

unread,
Oct 4, 2011, 12:56:42 PM10/4/11
to mvccontrib-discuss
Nevermind, I forgot to add item!!
Reply all
Reply to author
Forward
0 new messages