public async Task <IActionResult> Delete(int Id) { if (ModelState.IsValid) { await _publisherRepository.DeleteAsync(Id); } return(RedirectToAction(nameof(Index))); }
public async Task DeleteAsync(int id) { await _publisherRepository.DeleteAsync(id); await UnitOfWork.SaveAsync(); }
public async Task DeleteAsync(int id) { await repo.DeleteAsync(id); }