Ejemplo n.º 1
0
        public NoteViewItem GetById(Guid id)
        {
            var note     = _notesRepository.GetById(id);
            var metadata = _metadataRepository.GetByNoteId(id);

            return(new NoteViewItem
            {
                Id = note.Id,
                ImageId = metadata.ImageId,
                Text = note.Text,
                ThumbnailId = metadata.ThumbnailId,
            });
        }