public void DeleteTransactionById(int id) { var input = new DeleteTransactionByIdInput { Id = id }; try { using (var repo = new ItemSaleTransactionRepository()) { var app = new ItemSaleTransactionAppService(repo); app.DeleteTransactionById(input); } } catch (Exception ex) { MessageBox.Show(ex.Message, "DeleteItemTransactionById - Controller"); } }
public void DeleteTransactionById(DeleteTransactionByIdInput input) { _itemSaleRepository.DeleteTransactionById(input.Id); }