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); }
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; }