Where
Filter items
public IEnumerable<Todo> Filter(DateTime start, DateTime end)
{
var todos = dbContext.Todos.Where(x => x.CreatedAt >= start && x.CreatedAt <= end);
return todos.ToList();
}
Filter items
public IEnumerable<Todo> Filter(DateTime start, DateTime end)
{
var todos = dbContext.Todos.Where(x => x.CreatedAt >= start && x.CreatedAt <= end);
return todos.ToList();
}