public List <DeliveryNoteItemPropertyModel> Provide(Guid noteId)
        {
            var subscriberId = UserContext.Current.SubscriberId;
            var note         = _noteSearchRepository.GetEntity(subscriberId, noteId);

            return(_noteCategoryItemPropertyProvider.ProvideAssociations(note.CategoryId));
        }
        public DeliveryNoteDetailModel GetDeliveryNoteDetail(Guid noteId)
        {
            var subscriberId     = UserContext.Current.SubscriberId;
            var note             = this.GetDeliveryNote(noteId);
            var itemTableColumns = _itemPropertySearchRepository.SelectTableColumns(subscriberId)
                                   .Select(s => new CustomizedColumnModel
            {
                Name = s.Name,
                Id   = s.Id,
            }).ToList();
            var itemPoperties = _categoryItemPropertyProvider.ProvideAssociations(note.CategoryId);

            return(new DeliveryNoteDetailModel
            {
                DeliveryNote = note,
                ItemTableColumns = itemTableColumns,
                Items = GetItems(note.Id),
                ItemProperties = itemPoperties
            });
        }