public Note Create(string name, string value)
 {
     var rtn = new Note();
     rtn.Name = name;
     rtn.Value = value;
     Save (rtn);
     return rtn;
 }
 public NoteViewModel(Note note)
 {
     Id = note.Id;
     Name = note.Name;
     Value = note.Value;
     Valid = note.Valid;
     Messages = "";
     if (!Valid) {
         foreach (var m in note.Errors.Messages) {
             Messages += m + "\n";
         }
     }
 }