|
|
@ -15,7 +15,8 @@ namespace CetteAppliVaMarcher.Factories
|
|
|
|
EnchantCategories = item.EnchantCategories,
|
|
|
|
EnchantCategories = item.EnchantCategories,
|
|
|
|
MaxDurability = item.MaxDurability,
|
|
|
|
MaxDurability = item.MaxDurability,
|
|
|
|
StackSize = item.StackSize,
|
|
|
|
StackSize = item.StackSize,
|
|
|
|
ImageContent = imageContent
|
|
|
|
ImageContent = imageContent,
|
|
|
|
|
|
|
|
ImageBase64 = string.IsNullOrWhiteSpace(item.ImageBase64) ? Convert.ToBase64String(imageContent) : item.ImageBase64
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +31,8 @@ namespace CetteAppliVaMarcher.Factories
|
|
|
|
EnchantCategories = model.EnchantCategories,
|
|
|
|
EnchantCategories = model.EnchantCategories,
|
|
|
|
MaxDurability = model.MaxDurability,
|
|
|
|
MaxDurability = model.MaxDurability,
|
|
|
|
StackSize = model.StackSize,
|
|
|
|
StackSize = model.StackSize,
|
|
|
|
CreatedDate = DateTime.Now
|
|
|
|
CreatedDate = DateTime.Now,
|
|
|
|
|
|
|
|
ImageBase64 = Convert.ToBase64String(model.ImageContent)
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -43,6 +45,7 @@ namespace CetteAppliVaMarcher.Factories
|
|
|
|
item.MaxDurability = model.MaxDurability;
|
|
|
|
item.MaxDurability = model.MaxDurability;
|
|
|
|
item.StackSize = model.StackSize;
|
|
|
|
item.StackSize = model.StackSize;
|
|
|
|
item.UpdatedDate = DateTime.Now;
|
|
|
|
item.UpdatedDate = DateTime.Now;
|
|
|
|
|
|
|
|
item.ImageBase64 = Convert.ToBase64String(model.ImageContent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|