コード例 #1
0
        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);
 }