DRMFSS.Web.RoleProvider.GetRolesForUser C# (CSharp) Method

GetRolesForUser() public method

public GetRolesForUser ( string username ) : string[]
username string
return string[]
        public override string[] GetRolesForUser(string username)
        {
            BLL.CTSContext entities = new BLL.CTSContext();
            var roles = from role in entities.UserRoles
                        where role.UserProfile.UserName == username
                        select role.Role.Name;

            return roles.ToArray();
        }