public int AddNote(string noteName, string htmlContent, string shortNote)
        {
            var manager = new NotesManagerDataAccess();

            var note = new Notes {Name = noteName, HTML = htmlContent, ShortNote =  shortNote};

            return manager.AddNote(note);
        }
 public IList<Notes> GetNotes(int currentPage)
 {
     var manager = new NotesManagerDataAccess();
     return manager.GetNotes(currentPage);
 }
 public Notes GetNote(int noteId)
 {
     var manager = new NotesManagerDataAccess();
     return manager.GetNote(noteId);
 }
 public void DeleteNote(int noteId)
 {
     var manager = new NotesManagerDataAccess();
     manager.DeleteNote(noteId);
 }
 public void ChangeNote(int noteId, string noteName, string htmlContent, string shortNote)
 {
     var manager = new NotesManagerDataAccess();
     manager.ChangeNote(noteId, noteName, htmlContent, shortNote);
 }
 public int GetNotesCount()
 {
     var manager = new NotesManagerDataAccess();
     return manager.GetNotesCount();
 }