Exemple #1
0
        private void BtnDeleteOperation_Click(object sender, RoutedEventArgs e)
        {
            OperationDto clickedOperation = GetClickedOperation(sender);

            _operationRepo.Delete(clickedOperation.Id);
            InitializeTransactions();
        }
        public async Task <ActionResult> Delete(OperationViewModel vm)
        {
            await _operationRepo.Delete(vm.Id);

            return(RedirectToAction("Index"));
        }