Example #1
0
 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;
 }
Example #2
0
 public static void MapModelToEntity(ItemViewModel item, Item itemEntity)
 {
     Mapper.Map(item, itemEntity);
 }
Example #3
0
 public static Item MapSeedToEntity(ItemSeed itemSeed)
 {
     var itemEntity = new Item();
     MapSeedToEntity(itemSeed, itemEntity);
     return itemEntity;
 }
Example #4
0
 public static ItemViewModel MapEntityToModel(Item itemEntity)
 {
     return Mapper.Map<ItemViewModel>(itemEntity);
 }