public static Weapon CreateRandom() { Weapon weapon = new Weapon(); Random random = new Random((int)DateTime.Now.Ticks); weapon.Name = HelperManager.CreateRandomName(weaponFirstName, weaponLastName); weapon.Type = Weapon.WeaponType.Melee; weapon.DamageMinimum = random.Next(3); weapon.DamageMaximum = random.Next(4, 15); return weapon; }
public static void Insert(Weapon entity) { // Add the new entity to the repository. _repository.Add(entity); }
public static void Delete(Weapon entity) { // Add any custom business rules. _repository.Delete(entity); }