I was learning Mongo DB and in that i have following doubt. Please help
I have a class like following example
public class NoteUser
{
private int userid{get;set;}
private List<notes> notes{get;set;}
}
And now i have a context class to read from the database. And i also have one repository class to read the values from this context class, and this class have the functions like following
private bool DeleteNoteByUserId(int userId, int noteId)
{
//Here i need to delete the note which having id as noteId for user
//who having the id as userId
}
private bool UpdateNoteByUserId(int userId, int noteId, Note objNote)
{
//Here i need to perform update the note with objNote which having id as
//noteId for user who having the id as userId
}
How do i code it using MongoDBDriver in my repository class?