public IEnumerable<InsightPost> InsightsPosts { get; set; }
public void OnGet()
{
InsightsPosts = _db.InsightPosts.Where(p => p.Tags.Contains("test")).SelectMany(s => new { s.Title, s.Description });
}
My database has more columns but I only need a select few. What am I doing wrong here.