public static void MapSeedToEntity(ItemSeed itemSeed, Item itemEntity) { itemEntity.Aura = itemSeed.aura; itemEntity.CasterLevel = itemSeed.caster_level; itemEntity.Category = itemSeed.category; itemEntity.Cost = itemSeed.cost; itemEntity.FullText = HttpUtility.HtmlDecode(itemSeed.full_text); itemEntity.Id = itemSeed.Id; itemEntity.ManifesterLevel = itemSeed.manifester_level; itemEntity.Name = itemSeed.name; itemEntity.Prerequisites = itemSeed.prereq; itemEntity.Price = itemSeed.price; itemEntity.Reference = itemSeed.reference; itemEntity.SpecialAbility = itemSeed.special_ability; itemEntity.Subcategory = itemSeed.subcategory; itemEntity.Weight = itemSeed.weight; }
public static Item MapSeedToEntity(ItemSeed itemSeed) { var itemEntity = new Item(); MapSeedToEntity(itemSeed, itemEntity); return itemEntity; }