using MongoDB.Driver; using System.Collections.Generic; namespace Bootstrap.DataAccess.MongoDB { /// /// /// public class Task : DataAccess.Task { /// /// /// /// public override IEnumerable RetrieveTasks() { var users = MongoDbAccessManager.DBAccess.GetCollection("Tasks"); return users.Find(FilterDefinition.Empty).SortByDescending(task => task.AssignTime).ToList(); } } }