public Memo AddMemo(Memo memo)
        {
            if (_validationDic.IsValid)
                return _repository.Add(memo);

            return memo;
        }
 public void Update(Memo memo)
 {
     var dbMemo = Get(memo.MemoId);
     dbMemo.Title = memo.Title;
     dbMemo.Note = memo.Note;
     dbMemo.Age = memo.Age;
     dbMemo.Remark = memo.Remark;
 }
 public void UpdateMemo(Memo memo)
 {
     throw new NotImplementedException();
 }
 public Memo Add(Memo memo)
 {
     memo.MemoId = _nextId++;
     _db.Add(memo);
     return memo;
 }
 private void addMemoComamndExecute()
 {
     var memo = new Memo
     {
         Title = _title,
         Note = _note,
         Age = int.Parse(_age),
     };
     if (Option)
     {
         memo.Remark = Remark;
     }
     _service.AddMemo(memo);
     base.RaisePropertyChanged(() => Memos);
     MemoTitle = string.Empty;
     MemoNote = string.Empty;
     MemoAge = string.Empty;
     Option = false;
     Remark = string.Empty;
 }