示例#1
0
        public async Task <IActionResult> Delete(int Id)
        {
            if (ModelState.IsValid)
            {
                await _publisherRepository.DeleteAsync(Id);
            }

            return(RedirectToAction(nameof(Index)));
        }
示例#2
0
        public async Task DeleteAsync(int id)
        {
            await _publisherRepository.DeleteAsync(id);

            await UnitOfWork.SaveAsync();
        }
示例#3
0
 public async Task DeleteAsync(int id)
 {
     await repo.DeleteAsync(id);
 }