using MongoDB.Driver; using System.Collections.Generic; namespace Bootstrap.DataAccess.MongoDB { /// /// /// public class Role : DataAccess.Role { /// /// /// /// /// public override IEnumerable RetrieveRolesByUserName(string userName) { return new List() { "Administrators" }; } /// /// /// /// /// public override IEnumerable RetrieveRolesByUrl(string url) => new List() { "Administrators" }; /// /// /// /// /// public override IEnumerable RetrieveRoles() { var roles = MongoDbAccessManager.DBAccess.GetCollection("Roles"); return roles.Find(FilterDefinition.Empty).ToList(); } } }