private void buttonDelete_Click(object sender, EventArgs e) { if (empDataGridView.SelectedRows.Count == 0) { return; } empRepo.Delete(selectedRowDBindex()); empRepo.Save(); RefreshGui(); }
public async Task DeleteEmployerAsync_EmployerIsPreviouslySeeded_DeletesEmployer() { Employer deletedEmployer; using (var uow = unitOfWorkProvider.Create()) { employerRepository.Delete(Initializer.MicrosoftEmployer.Id); await uow.Commit(); deletedEmployer = await employerRepository.GetAsync(Initializer.MicrosoftEmployer.Id); } Assert.Null(deletedEmployer); }
public void DeleteById(string id) { _employerRepository.Delete(id); }