Ejemplo n.º 1
0
        //Update
        public void UpdateNoteProc(InNoteViewModel noteViewModel)
        {
            try
            {
                Note note = new Note();

                note.Value1 = noteViewModel.Value1;
                note.Value2 = noteViewModel.Value2;
                note.Id     = noteViewModel.Id;

                inoteDAO.UpdateNote(note);
            }
            catch (Exception e)
            {
                throw new Exception();
            }
        }
Ejemplo n.º 2
0
 //UPDATE
 public void UpdateNoteProc(InNoteViewModel noteViewModel)
 {
     try
     {
         DateTime dateTime = DateTime.UtcNow;
         Note     note     = new Note();
         note.Id     = noteViewModel.Id;
         note.Date   = dateTime;
         note.Value1 = noteViewModel.Value1;
         note.Value2 = noteViewModel.Value2;
         inoteDAO.UpdateNote(note);
     }
     catch (Exception e)
     {
         throw new Exception();
     }
 }