예제 #1
0
        public ItemDetailsCM buildItemDetailsCM(Guid Item_id)
        {
            Item          foundItem = _userAccess.GetItem(Item_id);
            ItemDetailsCM cm        = CharacterMapper.mapItemToItemDetailsCM(foundItem);
            List <Tag>    foundTags = _userAccess.GetTagsForItem(Item_id).ToList();
            List <string> tags      = new List <string>();

            foreach (Tag tag in foundTags)
            {
                tags.Add(tag.TagName);
            }
            cm.Tags = tags.ToArray();
            return(cm);
        }