using MongoDB.Driver;
using System.Collections.Generic;
namespace Bootstrap.DataAccess.MongoDB
{
///
///
///
public class Message : DataAccess.Message
{
///
///
///
///
///
protected override IEnumerable RetrieveMessages(string userName)
{
var msg = MongoDbAccessManager.DBAccess.GetCollection("Messages");
return msg.Find(message => message.To == userName || message.From == userName).ToList();
}
}
}