Rtur - can't seem to get it to work. I understand that logic but I'm not a pro programmer and can't seem to get the the correct syntax. This is what I have so far:
(post != null)
// start new code
if (DateTime.Now > post.DateCreated.AddDays(7))
// more than week old
// end new code
The program builds without errors except for this line:
post.Categories.Remove("Breaking"); I understand that it is not real code but this is line what i'm having trouble getting correct programmatically and syntax wise.
I get the following errors:
Error 1 The best overloaded method match for 'System.Collections.Generic.List<BlogEngine.Core.Category>.Remove(BlogEngine.Core.Category)' has some invalid arguments
Error 2 Argument '1': cannot convert from 'string' to 'BlogEngine.Core.Category'
I appreciate it. any help with that?