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");
            }
        }
Пример #2
0
 public void DeleteTransactionById(DeleteTransactionByIdInput input)
 {
     _itemSaleRepository.DeleteTransactionById(input.Id);
 }