//CREATE public void CreateNoteProc(InNoteViewModel noteViewModel) { try { Note note = new Note(); note.Value1 = noteViewModel.Value1; note.Value2 = noteViewModel.Value2; inoteDAO.CreateNote(note); } catch (Exception e) { throw new Exception(); } }
//CREATE public void CreateNoteProc(InNoteViewModel noteViewModel) { try { Guid guid = new Guid(); DateTime dateTime = DateTime.UtcNow; Note note = new Note(); note.Id = guid; note.Date = dateTime; note.Value1 = noteViewModel.Value1; note.Value2 = noteViewModel.Value2; inoteDAO.CreateNote(note); } catch (Exception e) { throw new Exception(); } }