public bool Delete(int id) { if (id < 1) { return(true); } var count = _shareRepo.Delete(id); return(count); }
public IActionResult DeleteConfirmed(int shareid) { _repository.Delete(shareid); return(RedirectToAction(nameof(Index))); }
public void Delete(long tenantId, long elementId, IUnitOfWork unitOfWork = null) { _shareRepository.Delete(tenantId, elementId, unitOfWork); }