public void Add(SNote note) { var dNote = SNote.StoD(note); NoteRepository.Add(dNote); note.Id = dNote.Id; }
public NoteCreate BuildNoteCreate(SNote note) { var noteCreate = new NoteCreate { Note = note, BookSelectList = new SelectList(BookRepository.GetAll(), "Id", "Title", note.BookId) }; return(noteCreate); }
public void Update(SNote entity) { NoteRepository.Update(SNote.StoD(entity)); }
public SNote GetSingle(Guid id) { var note = NoteRepository.GetSingle(id); return(SNote.DtoS(note)); }