public void RemoveCharacter(int id) { if (_db.Character.Any(c => c.CharacterId == id)) { _db.Remove(_db.Character.Find(id)); } else { throw new ArgumentNullException(); } }
public void DeleteUser(int id) { _db.Remove(_db.Users.Find(id)); }
public void DeleteInventory(int id) { _db.Remove(_db.Inventory.Find(id)); }
public void DeleteAbility(int id) { _db.Remove(_db.Abilities.Find(id)); }
public void DeleteCampaign(int id) { _db.Remove(_db.Campaign.Find(id)); }