///<Summary> ///Delete ///This method deletes one İnvoices record from the store ///</Summary> ///<returns> ///void ///</returns> ///<parameters> /// ///</parameters> public virtual void Delete() { Doing(this); IDAOİnvoices daoİnvoices = _iİnvoicesRepository.New(); RegisterDataObject(_iİnvoicesRepository, _iİnvoicesRepository.BaseData(daoİnvoices)); BeginTransaction(_iİnvoicesRepository, "deleteBOİnvoices"); try { daoİnvoices.İd = _id; _iİnvoicesRepository.Delete(daoİnvoices); CommitTransaction(_iİnvoicesRepository); Done(this); } catch (Exception ex) { Failed(this, ex); RollbackTransaction(_iİnvoicesRepository, "deleteBOİnvoices"); Handle(this, ex); } }
/// <summary> /// Deleting a shipment /// </summary> /// <param name="invoiceId">Shipment Id</param> public void Remove(int invoiceId) => invoicesRepository.Delete(invoiceId);
public void Delete(Guid id, string ownerId) { IsInvoiceStatusDraft(id, ownerId); invRepo.Delete(id, ownerId); }