public async void DeleteRebel(Rebel rebel) { try { _dbContext.Remove(rebel); await _dbContext.SaveChangesAsync(); } catch (Exception) { throw; } }
public void DeleteRebel(Rebel rebel) { _dbContext.Remove(rebel); _dbContext.SaveChanges(); }