Пример #1
0
        private static ItemStub GetStub(BaseItemDto item)
        {
            var stub = new ItemStub();

            stub.Id        = item.Id;
            stub.Name      = item.Name;
            stub.ImageType = ImageType.Primary;
            stub.ImageTag  = item.ImageTags.ContainsKey(ImageType.Primary) ? item.ImageTags[ImageType.Primary] : null;

            return(stub);
        }
Пример #2
0
        private static ItemStub GetStub(BaseItemDto item)
        {
            var stub = new ItemStub();

            stub.Id = item.Id;
            stub.Name = item.Name;
            stub.ImageType = ImageType.Primary;
            stub.ImageTag = item.ImageTags.ContainsKey(ImageType.Primary) ? item.ImageTags[ImageType.Primary] : null;

            return stub;
        }